DigitalSignature
Overview
DigitalSignature is a class in Aspose.Words FOSS for Java.
Represents a digital signature on a document and the result of its verification.
Edition status of its 17 listed members (a property and its accessor methods are listed separately, overloads once): 17 not yet exercised by a verified example.
This class declares 9 methods for DigitalSignature objects in Java programs.
Available methods include: getCertificateHolder, getComments, getIssuerName, getSignTime, getSignatureType, getSignatureValue, getSubjectName, isValid, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: certificateHolder, comments, issuerName, signTime, signatureType, signatureValue, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
signatureType | int | Read | Gets the type of the digital signature. |
signTime | java.util.Date | Read | Gets the sign time. |
comments | String | Read | Gets the signing purpose comment. |
subjectName | String | Read | Returns the subject distinguished name of the certificate that was used to sign the document. |
issuerName | String | Read | Returns the subject distinguished name of the certificate isuuer. |
valid | boolean | Read | Returns true if this digital signature is valid and the document has not been tampered with. |
certificateHolder | CertificateHolder | Read | Returns the certificate holder object that contains the certificate was used to sign the document. |
signatureValue | byte[] | Read | Gets an array of bytes representing a signature value. |
Methods
| Signature | Description |
|---|---|
getSignatureType() → int | Gets the type of the digital signature. |
getSignTime() → java.util.Date | Returns the sign time. |
getComments() → String | Gets the signing purpose comment. |
getSubjectName() → String | Returns the subject distinguished name of the certificate that was used to sign the document. |
getIssuerName() → String | Returns the subject distinguished name of the certificate isuuer. |
isValid() → boolean | Returns true if this digital signature is valid and the document has not been tampered with. |
getCertificateHolder() → CertificateHolder | Returns the certificate holder object that contains the certificate was used to sign the document. |
getSignatureValue() → byte[] | Gets an array of bytes representing a signature value. |
toString() → String | Returns a user-friendly string that displays the value of this object. |