public class OcspClientBouncyCastle extends Object implements OcspClient
| Constructor and Description |
|---|
OcspClientBouncyCastle()
Deprecated.
|
OcspClientBouncyCastle(OCSPVerifier verifier)
Create OcspClient
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.cert.ocsp.BasicOCSPResp |
getBasicOCSPResp(X509Certificate checkCert, X509Certificate rootCert, String url)
Gets OCSP response.
|
byte[] |
getEncoded(X509Certificate checkCert, X509Certificate rootCert, String url)
Gets an encoded byte array with OCSP validation.
|
@Deprecated public OcspClientBouncyCastle()
OcspClient. Note, if you use this constructor, OCSP response will not be verified.
public OcspClientBouncyCastle(OCSPVerifier verifier)
OcspClient
verifier - will be used for response verification. OCSPVerifier.
public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp(X509Certificate checkCert, X509Certificate rootCert, String url)
OCSPVerifier was setted, the response will be checked.
public byte[] getEncoded(X509Certificate checkCert, X509Certificate rootCert, String url)
getEncoded in interface OcspClient
checkCert - to certificate to check
rootCert - the parent certificate
url - to get the verification. It it's null it will be taken from the check cert or from other implementation specific source
Copyright © 1998–2021. All rights reserved.