public interface IDigitalSignature
Digital signature in signed file.
Modifier and Type | Method and Description |
---|---|
byte[] |
getCertificate()
Certificate object that was used to sign the document.
|
java.lang.String |
getComments()
The purpose of signature.
|
java.util.Date |
getSignTime()
The time when the document was signed.
|
boolean |
isValid()
If this digital signature is valid and the document has not been tampered with, this value will be true.
|
void |
setComments(java.lang.String value)
The purpose of signature.
|
byte[] getCertificate()
Certificate object that was used to sign the document.
Read-only byte[]
.
boolean isValid()
If this digital signature is valid and the document has not been tampered with, this value will be true.
Read-only boolean
.
Presentation pres = new Presentation("SomePresentationSigned.pptx"); try { for (IDigitalSignature signature : pres.getDigitalSignatures()) System.out.println("Signature check: " + (signature.isValid() ? "VALID" : "INVALID")); } finally { if (pres != null) pres.dispose(); }
java.util.Date getSignTime()
The time when the document was signed.
Read-only Date
.
Presentation pres = new Presentation("SomePresentationSigned.pptx"); try { for (IDigitalSignature signature : pres.getDigitalSignatures()) System.out.println("Signature check: " + (signature.IsValid ? "VALID" : "INVALID") + ", Signing time: " + signature.getSignTime()); } finally { if (pres != null) pres.dispose(); }
java.lang.String getComments()
The purpose of signature.
Read/write String
.
void setComments(java.lang.String value)
The purpose of signature.
Read/write String
.