|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.security.CertificateVerification
public class CertificateVerification
This class consists of some methods that allow you to verify certificates.
Constructor Summary | |
---|---|
CertificateVerification()
|
Method Summary | |
---|---|
static String |
verifyCertificate(X509Certificate cert,
Collection<CRL> crls,
Calendar calendar)
Verifies a single certificate. |
static List<VerificationException> |
verifyCertificates(Certificate[] certs,
KeyStore keystore,
Calendar calendar)
Verifies a certificate chain against a KeyStore. |
static List<VerificationException> |
verifyCertificates(Certificate[] certs,
KeyStore keystore,
Collection<CRL> crls,
Calendar calendar)
Verifies a certificate chain against a KeyStore. |
static boolean |
verifyOcspCertificates(org.bouncycastle.cert.ocsp.BasicOCSPResp ocsp,
KeyStore keystore,
String provider)
Verifies an OCSP response against a KeyStore. |
static boolean |
verifyTimestampCertificates(org.bouncycastle.tsp.TimeStampToken ts,
KeyStore keystore,
String provider)
Verifies a time stamp against a KeyStore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateVerification()
Method Detail |
---|
public static String verifyCertificate(X509Certificate cert, Collection<CRL> crls, Calendar calendar)
cert
- the certificate to verifycrls
- the certificate revocation list or null
calendar
- the date or null
for the current date
String
with the error description or null
if no errorpublic static List<VerificationException> verifyCertificates(Certificate[] certs, KeyStore keystore, Collection<CRL> crls, Calendar calendar)
certs
- the certificate chainkeystore
- the KeyStore
crls
- the certificate revocation list or null
calendar
- the date or null
for the current date
null
if the certificate chain could be validated or a
Object[]{cert,error}
where cert
is the
failed certificate and error
is the error messagepublic static List<VerificationException> verifyCertificates(Certificate[] certs, KeyStore keystore, Calendar calendar)
certs
- the certificate chainkeystore
- the KeyStore
calendar
- the date or null
for the current date
null
if the certificate chain could be validated or a
Object[]{cert,error}
where cert
is the
failed certificate and error
is the error messagepublic static boolean verifyOcspCertificates(org.bouncycastle.cert.ocsp.BasicOCSPResp ocsp, KeyStore keystore, String provider)
ocsp
- the OCSP responsekeystore
- the KeyStore
provider
- the provider or null
to use the BouncyCastle provider
true
is a certificate was foundpublic static boolean verifyTimestampCertificates(org.bouncycastle.tsp.TimeStampToken ts, KeyStore keystore, String provider)
ts
- the time stampkeystore
- the KeyStore
provider
- the provider or null
to use the BouncyCastle provider
true
is a certificate was found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |