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.

Returns: 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.

Returns: DigitalSignature


getCertificate

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

Returns: byte


getComments

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

Returns: String


getSignTime

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

Returns: 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.

Returns: boolean


setComments

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

Returns: void