PKCS7SignedData
Overview
PKCS7SignedData is a class in Aspose.PDF FOSS for Java.
Parses and creates PKCS#7 SignedData structures (RFC 2315 §9).
This class provides 8 methods for working with PKCS7SignedData objects in Java programs.
Available methods include: createDetached, encode, getCertificates, getEncapsulatedContent, getSignerInfos, getVersion, parse, verify.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: certificates, encapsulatedContent, signerInfos, version.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
encapsulatedContent | byte[] | Read | Returns the encapsulated content data, if any. |
signerInfos | List<SignerInfo> | Read | Gets the signer infos. |
certificates | List<X509Certificate> | Read | Gets the certificates. |
version | int | Read | Gets the version. |
Methods
| Signature | Description |
|---|---|
parse(pkcs7Bytes: byte[]) → PKCS7SignedData | Parses PKCS#7 SignedData from DER-encoded bytes. |
createDetached(privateKey: PrivateKey, certificate: X509Certificate, chain: X509Certificate[], digestAlgorithm: String, dataToSign: byte[]) → PKCS7SignedData | Creates a detached PKCS#7 signature. |
verify(originalData: byte[]) → boolean | Verifies 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> | Returns the signer infos. |
getCertificates() → List<X509Certificate> | Returns the certificates. |
getVersion() → int | Returns the version. |