Example usage for Java com.lowagie.text.pdf PdfPKCS7 fields, constructors, methods, implement or subclass
The text is from its open source code.
PdfPKCS7(PrivateKey privKey, Certificate[] certChain, CRL[] crlList, String hashAlgorithm, String provider, boolean hasRSAdata) Generates a signature. |
byte[] | getAuthenticatedAttributeBytes(byte secondDigest[], Calendar signingTime, byte[] ocsp) 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 |
byte[] | getEncodedPKCS1() Gets the bytes for the PKCS#1 object. |
byte[] | getEncodedPKCS7() Gets the bytes for the PKCS7SignedData object. |
byte[] | getEncodedPKCS7(byte secondDigest[], Calendar signingTime, TSAClient tsaClient, byte[] ocsp) Gets the bytes for the PKCS7SignedData object. |
String | getLocation() Getter for property location. |
BasicOCSPResp | getOcsp() Gets the OCSP basic response if there is one. |
String | getOCSPURL(X509Certificate certificate) Retrieves the OCSP URL from the given certificate. |
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. |
X509Name | getSubjectFields(X509Certificate cert) Get the subject fields from an X509 Certificate |
Calendar | getTimeStampDate() Gets the timestamp date |
TimeStampToken | getTimeStampToken() Gets the timestamp token if there is one. |
boolean | isRevocationValid() Checks if OCSP revocation refers to the document signing certificate. |
KeyStore | loadCacertsKeyStore() Loads the default root certificates at <java.home>/lib/security/cacerts with the default provider. |
void | setExternalDigest(byte digest[], byte RSAdata[], String digestEncryptionAlgorithm) Sets the digest/signature to an external calculated value. |
void | update(byte[] buf, int off, int len) Update the digest with the specified bytes. |
boolean | verify() Verify the digest. |
String | verifyCertificate(X509Certificate cert, Collection crls, Calendar calendar) Verifies a single certificate. |
Object[] | verifyCertificates(Certificate certs[], KeyStore keystore, Collection crls, Calendar calendar) Verifies a certificate chain against a KeyStore. |
boolean | verifyTimestampCertificates(TimeStampToken ts, KeyStore keystore, String provider) Verifies a timestamp against a KeyStore. |