Signature

Overview

Signature is a class in Aspose.PDF FOSS for Java.

Abstract base class for PDF digital signature types (ISO 32000-1:2008, §12.8).

This class provides 16 methods for working with Signature objects in Java programs. Available methods include: getCertificate, getCertificateChain, getContactInfo, getCustomAppearance, getDate, getLocation, getName, getPrivateKey, getReason, getSubFilter, setContactInfo, setCustomAppearance, and 4 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: certificate, certificateChain, contactInfo, customAppearance, date, location, and 4 more.

Properties

NameTypeAccessDescription
privateKeyPrivateKeyReadReturns the private key from the loaded KeyStore.
certificateX509CertificateReadReturns the signer’s X.509 certificate from the loaded KeyStore.
certificateChainX509Certificate[]ReadReturns the certificate chain from the loaded KeyStore.
subFilterStringReadReturns the PDF sub-filter name for this signature type.
reasonStringReadReturns the signing reason.
locationStringReadReturns the signing location.
contactInfoStringReadReturns the contact info.
nameStringReadReturns the signer name override.
dateDateReadReturns the signing date.
customAppearanceSignatureCustomAppearanceReadReturns the custom appearance settings for the signature.

Methods

SignatureDescription
getPrivateKey()PrivateKeyReturns the private key from the loaded KeyStore.
getCertificate()X509CertificateReturns the signer’s X.509 certificate from the loaded KeyStore.
getCertificateChain()X509Certificate[]Returns the certificate chain from the loaded KeyStore.
getSubFilter()StringReturns the PDF sub-filter name for this signature type.
getReason()StringReturns the signing reason.
setReason(reason: String)Sets the signing reason.
getLocation()StringReturns the signing location.
setLocation(location: String)Sets the signing location.
getContactInfo()StringReturns the contact info.
setContactInfo(contactInfo: String)Sets the contact info.
getName()StringReturns the signer name override.
setName(name: String)Sets the signer name override.
getDate()DateReturns the signing date.
setDate(date: Date)Sets the signing date.
getCustomAppearance()SignatureCustomAppearanceReturns the custom appearance settings for the signature.
setCustomAppearance(appearance: SignatureCustomAppearance)Sets the custom appearance settings for the signature.

See Also

 English