DigitalSignature

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

NameTypeAccessDescription
signatureTypeintReadGets the type of the digital signature.
signTimejava.util.DateReadGets the sign time.
commentsStringReadGets the signing purpose comment.
subjectNameStringReadReturns the subject distinguished name of the certificate that was used to sign the document.
issuerNameStringReadReturns the subject distinguished name of the certificate isuuer.
validbooleanReadReturns true if this digital signature is valid and the document has not been tampered with.
certificateHolderCertificateHolderReadReturns the certificate holder object that contains the certificate was used to sign the document.
signatureValuebyte[]ReadGets an array of bytes representing a signature value.

Methods

SignatureDescription
getSignatureType() → intGets the type of the digital signature.
getSignTime() → java.util.DateReturns the sign time.
getComments() → StringGets the signing purpose comment.
getSubjectName() → StringReturns the subject distinguished name of the certificate that was used to sign the document.
getIssuerName() → StringReturns the subject distinguished name of the certificate isuuer.
isValid() → booleanReturns true if this digital signature is valid and the document has not been tampered with.
getCertificateHolder() → CertificateHolderReturns 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() → StringReturns a user-friendly string that displays the value of this object.

See Also