java.lang.Object
org.openpdf.text.pdf.OcspClientBouncyCastle
- All Implemented Interfaces:
OcspClient
OcspClient implementation using BouncyCastle.
- Since:
- 2.1.6
- Author:
- psoares
-
Constructor Summary
ConstructorsConstructorDescriptionOcspClientBouncyCastle(X509Certificate checkCert, X509Certificate rootCert, String url) Creates an instance of an OcspClient that will be using BouncyCastle. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets an encoded byte array.getProxy()Returns Proxy object used for URL connections.voidSets Proxy which will be used for URL connection.
-
Constructor Details
-
OcspClientBouncyCastle
Creates an instance of an OcspClient that will be using BouncyCastle.- Parameters:
checkCert- the check certificaterootCert- the root certificateurl- the OCSP URL
-
-
Method Details
-
getEncoded
public byte[] getEncoded()Description copied from interface:OcspClientGets an encoded byte array.- Specified by:
getEncodedin interfaceOcspClient- Returns:
- a byte array
- See Also:
-
getProxy
Returns Proxy object used for URL connections.- Returns:
- configured proxy
-
setProxy
Sets Proxy which will be used for URL connection.- Parameters:
aProxy- Proxy to set
-