PKCS7SignedData

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.

נכסים

NameTypeAccessDescription
encapsulatedContentbyte[]ReadReturns the encapsulated content data, if any.
signerInfosList<SignerInfo>ReadGets the signer infos.
certificatesList<X509Certificate>ReadGets the certificates.
versionintReadGets the version.

שיטות

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>Returns the signer infos.
getCertificates() → List<X509Certificate>Returns the certificates.
getVersion() → intReturns the version.

ראה גם

  • Aspose.PDF for Java — Enterprise API Reference – רשימת ה-Java
 עברית