DigitalSignature

DigitalSignature class

Digital signature in signed file.

DigitalSignature

NameDescription
DigitalSignature(byte[], String)Creates a new DigitalSignature object with the specified certificate.

Parameters:

NameTypeDescription
certDatabyte[]a byte array containing the certificate
passwordStringPassword required to access certificate.

Result: DigitalSignature


DigitalSignature

NameDescription
DigitalSignature(String, String)Creates a new DigitalSignature object with the specified certificate file path and password.

Parameters:

NameTypeDescription
filePathStringPath to the file with certificate.
passwordStringPassword required to access certificate.

Result: DigitalSignature


getCertificate

NameDescription
getCertificate()Certificate object that was used to sign the document. Read-only byte[].

Result: byte


getComments

NameDescription
getComments()The purpose of signature. Read/write String.

Result: String


getSignTime

NameDescription
getSignTime()The time when the document was signed. Read-only java.util.Date.

Result: Date


isValid

NameDescription
isValid()If this digital signature is valid and the document has not been tampered with, this value will be true. Read-only boolean.

Result: boolean


setComments

NameDescription
setComments(String)The purpose of signature. Read/write String.