Package com.lowagie.text.pdf
Class OcspClientBouncyCastle
java.lang.Object
com.lowagie.text.pdf.OcspClientBouncyCastle
- All Implemented Interfaces:
OcspClient
Deprecated.
OcspClient implementation using BouncyCastle.
- Since:
- 2.1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final X509CertificateDeprecated.check certificateprivate ProxyDeprecated.HTTP proxy used to access the OCSP URLprivate final X509CertificateDeprecated.root certificateprivate final StringDeprecated.OCSP URL -
Constructor Summary
ConstructorsConstructorDescriptionOcspClientBouncyCastle(X509Certificate checkCert, X509Certificate rootCert, String url) Deprecated.Creates an instance of an OcspClient that will be using BouncyCastle. -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.bouncycastle.cert.ocsp.OCSPReqgenerateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) Deprecated.Generates an OCSP request using BouncyCastle.byte[]Deprecated.Gets an encoded byte array.getProxy()Deprecated.Returns Proxy object used for URL connections.voidDeprecated.Sets Proxy which will be used for URL connection.
-
Field Details
-
rootCert
Deprecated.root certificate -
checkCert
Deprecated.check certificate -
url
Deprecated.OCSP URL -
proxy
Deprecated.HTTP proxy used to access the OCSP URL
-
-
Constructor Details
-
OcspClientBouncyCastle
Deprecated.Creates an instance of an OcspClient that will be using BouncyCastle.- Parameters:
checkCert- the check certificaterootCert- the root certificateurl- the OCSP URL
-
-
Method Details
-
generateOCSPRequest
private static org.bouncycastle.cert.ocsp.OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws org.bouncycastle.cert.ocsp.OCSPException, IOException, org.bouncycastle.operator.OperatorCreationException, CertificateEncodingException Deprecated.Generates an OCSP request using BouncyCastle.- Parameters:
issuerCert- certificate of the issuesserialNumber- serial number- Returns:
- an OCSP request
- Throws:
org.bouncycastle.cert.ocsp.OCSPExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationExceptionCertificateEncodingException
-
getEncoded
public byte[] getEncoded()Deprecated.Description copied from interface:OcspClientGets an encoded byte array.- Specified by:
getEncodedin interfaceOcspClient- Returns:
- a byte array
- See Also:
-
getProxy
Deprecated.Returns Proxy object used for URL connections.- Returns:
- configured proxy
-
setProxy
Deprecated.Sets Proxy which will be used for URL connection.- Parameters:
aProxy- Proxy to set
-