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)
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 IOcspClient
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–2016 iText Group NV. All rights reserved.