Example usage for Java com.itextpdf.text.pdf.security PdfPKCS7 fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isTsp True if there's a PAdES LTV time stamp. |
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. |
byte[] | getAuthenticatedAttributeBytes(byte secondDigest[], byte[] ocsp, Collection 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. |
Collection | getCRLs() Get the X.509 certificate revocation lists associated with this PKCS#7 object |
String | getDigestAlgorithm() Get the algorithm used to calculate the message digest, e.g. |
byte[] | getEncodedPKCS7(byte secondDigest[], TSAClient tsaClient, byte[] ocsp, Collection Gets the bytes for the PKCS7SignedData object. |
String | getHashAlgorithm() Returns the name of the digest algorithm, e.g. |
String | getLocation() Getter for property location. |
BasicOCSPResp | getOcsp() Gets the OCSP basic response if there is one. |
String | getReason() Getter for property reason. |
Certificate[] | getSignCertificateChain() Get the X.509 sign certificate chain associated with this PKCS#7 object. |
Calendar | getSignDate() Getter for property signDate. |
X509Certificate | getSigningCertificate() Get the X.509 certificate actually used to sign the digest. |
String | getSignName() Getter for property sigName. |
Calendar | getTimeStampDate() Gets the timestamp date |
TimeStampToken | getTimeStampToken() Gets the timestamp token if there is one. |
int | getVersion() Get the version of the PKCS#7 object. |
boolean | isRevocationValid() Checks if OCSP revocation refers to the document signing certificate. |
void | setExternalDigest(byte digest[], byte RSAdata[], String digestEncryptionAlgorithm) Sets the digest/signature to an external calculated value. |
boolean | verify() Verify the digest. |
boolean | verifyTimestampImprint() Checks if the timestamp refers to this document. |