public class OcspClientBouncyCastle extends Object implements IOcspClient
| Constructor and Description |
|---|
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.
|
public OcspClientBouncyCastle(OCSPVerifier verifier)
OcspClientverifier - will be used for response verification.OCSPVerifierpublic org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp(X509Certificate checkCert, X509Certificate rootCert, String url)
OCSPVerifier was set, the response will be checked.public byte[] getEncoded(X509Certificate checkCert, X509Certificate rootCert, String url)
getEncoded in interface IOcspClientcheckCert - 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 © 1998–2018 iText Group NV. All rights reserved.