PKCS7SignedData
סקירה כללית
‘PKCS7SignedData’ הוא שיעור ב- Aspose.PDF FOSS עבור Java.
פתח ויוצר PKCS#7 SignedData מבנים (RFC 2315 §9).
שיטות זמינות כוללות: ‘createDetached’, ’encode’, `getCertificates’, ‘getEncapsulatedContent’, ‘getSignerInfos’, ’getVersion’, ‚parse‘, ‘verify’. כל החברים הציבוריים נגישים לכל יישום Java לאחר התקנת Aspose.PDF FOSS עבור חבילת Java.
נכסים
| 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. |
שיטות
| 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. |
ראה גם
- Aspose.PDF for Java — Enterprise API Reference – רשימת ה-Java