|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.loggers.SignatureAction
public class SignatureAction
This class implements a post rotation action that signs the file.
Constructor Summary | |
---|---|
SignatureAction(java.lang.String origFile,
java.lang.String alias)
Create the signature action based on the log file name, and the certificate alias to use for signing. |
|
SignatureAction(java.lang.String origFile,
java.lang.String sigAlg,
java.lang.String digestAlg,
java.lang.String alias)
Create the signature action based on the log file name, the signature algorithm, the digest algorithm, and the certificate alias to use for signing. |
Method Summary | |
---|---|
boolean |
execute()
The signature action that is executed. |
boolean |
verify()
Verify the signature int the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignatureAction(java.lang.String origFile, java.lang.String alias)
origFile
- The source file name to sign.alias
- The certificate alias to use for signing.public SignatureAction(java.lang.String origFile, java.lang.String sigAlg, java.lang.String digestAlg, java.lang.String alias)
origFile
- The source file name to sign.sigAlg
- The signature algorithm to use.digestAlg
- The MD5 digest algorithm to use.alias
- The certificate alias to use for signing.Method Detail |
---|
public boolean execute()
execute
in interface PostRotationAction
true
if the signature was generated successfully, or
false
if not.public boolean verify()
true
if the signature is valid, or false
if not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |