|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.loggers.EncryptAction
public class EncryptAction
This class implements a post rotation action that encrypts the log file.
Constructor Summary | |
---|---|
EncryptAction(java.lang.String origFile,
java.lang.String newFile,
boolean deleteOriginal,
java.lang.String alias,
java.lang.String encryptAlg)
Create the action based on the original file, the new file after encrypting and whether the original file should be deleted. |
Method Summary | |
---|---|
boolean |
execute()
The signature action that is executed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncryptAction(java.lang.String origFile, java.lang.String newFile, boolean deleteOriginal, java.lang.String alias, java.lang.String encryptAlg)
origFile
- The source file to be encrypted.newFile
- The new file to which the encrypted data should be
written.deleteOriginal
- Indicates whether the original file should be
deleted.alias
- The nickname of the certificate to use for the
encryption.encryptAlg
- The encryption algorithm that should be used.Method Detail |
---|
public boolean execute()
execute
in interface PostRotationAction
true
if the encryption succeeded, or
false
if it did not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |