PKCS7SignedData

PKCS7SignedData

Overview

PKCS7SignedData is a class in Aspose.Pdf FOSS for Java.

Parses and creates PKCS#7 SignedData structures (RFC 2315 §9).

Properties

NameTypeAccessDescription
encapsulatedContentbyte[]ReadReturns the encapsulated content data, if any.
signerInfosList<SignerInfo>Read
certificatesList<X509Certificate>Read
versionintRead

Methods

SignatureDescription
parse(pkcs7Bytes: byte[])PKCS7SignedDataParses PKCS#7 SignedData from DER-encoded bytes.
createDetached(privateKey: PrivateKey, certificate: X509Certificate, chain: X509Certificate[], digestAlgorithm: String, dataToSign: byte[])PKCS7SignedDataCreates a detached PKCS#7 signature.
verify(originalData: byte[])booleanVerifies the signature against original data.
getEncapsulatedContent()byte[]Returns the encapsulated content data, if any.
encode()byte[]Encodes this SignedData to DER bytes.
getSignerInfos()List<SignerInfo>
getCertificates()List<X509Certificate>
getVersion()int

See Also