PKCS7Detached

PKCS7Detached

Overview

PKCS7Detached is a class in Aspose.PDF FOSS for Java. Inherits from: Signature.

PKCS#7 detached signature for PDF (ISO 32000-1:2008, §12.8.3.3.1).

This class provides 18 methods for working with PKCS7Detached objects in Java programs. Available methods include: PKCS7Detached, getCertificate, getCertificateChain, getContactInfo, getCustomAppearance, getDate, getLocation, getName, getPrivateKey, getReason, getSubFilter, setContactInfo, and 5 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
subFilterStringReadGets the sub filter.
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.
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
PKCS7Detached(pfxPath: String, password: String)Creates a PKCS#7 detached signature from a PFX/P12 file.
PKCS7Detached(pfxStream: InputStream, password: String)Creates a PKCS#7 detached signature from a PFX/P12 stream.
getSubFilter() → StringReturns the sub filter.
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.
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