public class CertificateVerification extends Object
| Constructor and Description |
|---|
CertificateVerification() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static String verifyCertificate(X509Certificate cert, Collection<CRL> crls, Calendar calendar)
cert - the certificate to verifycrls - the certificate revocation list or nullcalendar - the date or null for the current dateString 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 KeyStorecrls - the certificate revocation list or nullcalendar - the date or null for the current datenull 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 KeyStorecalendar - the date or null for the current datenull 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 KeyStoreprovider - the provider or null to use the BouncyCastle providertrue is a certificate was foundpublic static boolean verifyTimestampCertificates(org.bouncycastle.tsp.TimeStampToken ts,
KeyStore keystore,
String provider)
ts - the time stampkeystore - the KeyStoreprovider - the provider or null to use the BouncyCastle providertrue is a certificate was foundCopyright © 2024. All rights reserved.