public class OcspClientBouncyCastle extends Object implements OcspClient
Modifier and Type | Field and Description |
---|---|
private X509Certificate |
checkCert
check certificate
|
private X509Certificate |
rootCert
root certificate
|
private String |
url
OCSP URL
|
Constructor and Description |
---|
OcspClientBouncyCastle(X509Certificate checkCert,
X509Certificate rootCert,
String url)
Creates an instance of an OcspClient that will be using BouncyCastle.
|
Modifier and Type | Method and Description |
---|---|
private static OCSPReq |
generateOCSPRequest(X509Certificate issuerCert,
BigInteger serialNumber)
Generates an OCSP request using BouncyCastle.
|
byte[] |
getEncoded()
Gets an encoded byte array.
|
private X509Certificate rootCert
private X509Certificate checkCert
public OcspClientBouncyCastle(X509Certificate checkCert, X509Certificate rootCert, String url)
checkCert
- the check certificaterootCert
- the root certificateurl
- the OCSP URLprivate static OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws OCSPException, IOException
issuerCert
- certificate of the issuesserialNumber
- serial numberOCSPException
IOException
public byte[] getEncoded()
OcspClient
getEncoded
in interface OcspClient
OcspClient.getEncoded()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses