public class OCSPVerifier extends Object
| Constructor and Description |
|---|
OCSPVerifier() |
| Modifier and Type | Method and Description |
|---|---|
static RevocationInfo |
verifyCertificateOCSP(X509Certificate cert,
KeyStore trustStore)
Verifies a certificate against a its issuer using OCSP.
|
static RevocationInfo |
verifyCertificateOCSP(X509Certificate cert,
X509Certificate issuerCert)
Verifies a certificate against a its issuer using OCSP.
|
public static RevocationInfo verifyCertificateOCSP(X509Certificate cert, KeyStore trustStore) throws IOException, KeyStoreException, OCSPValidationException
verifyCertificateChain
instead to verify the complete chain.cert - Certificate to validatetrustStore - Truststore containing the issuer certificateIOExceptionKeyStoreExceptionOCSPValidationExceptionpublic static RevocationInfo verifyCertificateOCSP(X509Certificate cert, X509Certificate issuerCert) throws IOException, OCSPValidationException
verifyCertificateChain
instead to verify the complete chain.cert - Certificate to validateissuerCert - The issuer certificateIOExceptionOCSPValidationExceptionCopyright © 2012–2019 Danish Maritime Authority. All rights reserved.