PKCS1

Overview

PKCS1 is a class in Aspose.Pdf FOSS for Java. Inherits from: Signature.

PKCS#1 RSA signature for PDF (ISO 32000-1:2008, §12.8.3.2).

Properties

NameTypeAccessDescription
subFilterStringRead
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
PKCS1(pfxPath: String, password: String)Creates a PKCS#1 RSA signature from a PFX/P12 file.
PKCS1(pfxStream: InputStream, password: String)Creates a PKCS#1 RSA signature from a PFX/P12 stream.
getSubFilter()String
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