PKCS7SignedData
Overview
PKCS7SignedData is a class in Aspose.Pdf FOSS for Java.
Parses and creates PKCS#7 SignedData structures (RFC 2315 §9).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
encapsulatedContent | byte[] | Read | Returns the encapsulated content data, if any. |
signerInfos | List<SignerInfo> | Read | |
certificates | List<X509Certificate> | Read | |
version | int | Read |
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> | |
getCertificates() → List<X509Certificate> | |
getVersion() → int |