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)
OcspClientverifier - 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 OcspClientcheckCert - to certificate to checkrootCert - the parent certificateurl - to get the verification. It it's null it will be taken
from the check cert or from other implementation specific sourceCopyright © 2024. All rights reserved.