PQ7Data de la signature

PQ7Data de la signature

Vue de l’ensemble

‘PKCS7SignedData’ est une classe dans Aspose.PDF FOSS pour Java.

Parse et crée les structures PKCS#7 SignedData (RFC 2315 §9).

Cette classe fournit 8 méthodes pour travailler avec des objets de données PKCS7Signed dans les programmes Java. Les méthodologies disponibles comprennent: ‘createDetached’, ’encode’, getCertificates', ‘getEncapsulatedContent’, 'getSignerInfos', ’getVersion', ‚parse‘, 'verify'. Tous les membres publics sont accessibles à toute application Java après l'installation du package Java Aspose.PDF FOSS. Propriétés: certificats, encapsule Content , 'signerInfos et ‘version’.

Propriétés

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

méthodes

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.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français