Java com.itextpdf.text.pdf.security PdfPKCS7 fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.text.pdf.security PdfPKCS7 fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.text.pdf.security PdfPKCS7.

The text is from its open source code.

Field

booleanisTsp
True if there's a PAdES LTV time stamp.

Constructor

PdfPKCS7(PrivateKey privKey, Certificate[] certChain, String hashAlgorithm, String provider, ExternalDigest interfaceDigest, boolean hasRSAdata)
Assembles all the elements needed to create a signature, except for the data.
PdfPKCS7(byte[] contentsKey, byte[] certsKey, String provider)
Use this constructor if you want to verify a signature using the sub-filter adbe.x509.rsa_sha1.
PdfPKCS7(byte[] contentsKey, PdfName filterSubtype, String provider)
Use this constructor if you want to verify a signature.

Method

byte[]getAuthenticatedAttributeBytes(byte secondDigest[], byte[] ocsp, Collection crlBytes, CryptoStandard sigtype)
When using authenticatedAttributes the authentication process is different.
Certificate[]getCertificates()
Get all the X.509 certificates associated with this PKCS#7 object in no particular order.
CollectiongetCRLs()
Get the X.509 certificate revocation lists associated with this PKCS#7 object
StringgetDigestAlgorithm()
Get the algorithm used to calculate the message digest, e.g.
byte[]getEncodedPKCS7(byte secondDigest[], TSAClient tsaClient, byte[] ocsp, Collection crlBytes, CryptoStandard sigtype)
Gets the bytes for the PKCS7SignedData object.
StringgetHashAlgorithm()
Returns the name of the digest algorithm, e.g.
StringgetLocation()
Getter for property location.
BasicOCSPRespgetOcsp()
Gets the OCSP basic response if there is one.
StringgetReason()
Getter for property reason.
Certificate[]getSignCertificateChain()
Get the X.509 sign certificate chain associated with this PKCS#7 object.
CalendargetSignDate()
Getter for property signDate.
X509CertificategetSigningCertificate()
Get the X.509 certificate actually used to sign the digest.
StringgetSignName()
Getter for property sigName.
CalendargetTimeStampDate()
Gets the timestamp date
TimeStampTokengetTimeStampToken()
Gets the timestamp token if there is one.
intgetVersion()
Get the version of the PKCS#7 object.
booleanisRevocationValid()
Checks if OCSP revocation refers to the document signing certificate.
voidsetExternalDigest(byte digest[], byte RSAdata[], String digestEncryptionAlgorithm)
Sets the digest/signature to an external calculated value.
booleanverify()
Verify the digest.
booleanverifyTimestampImprint()
Checks if the timestamp refers to this document.