Class BasicOCSPResponseBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.ocsp.BasicOCSPResponseBC
- All Implemented Interfaces:
-
IASN1Encodable
,IBasicOCSPResponse
Wrapper class for
BasicOCSPResponse
.
-
Constructor Summary
ConstructorDescriptionBasicOCSPResponseBC
(org.bouncycastle.asn1.ocsp.BasicOCSPResponse basicOCSPResponse) Creates new wrapper instance forBasicOCSPResponse
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ocsp.BasicOCSPResponse
Gets actual org.bouncycastle object being wrapped.Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actualgetProducedAt
method, then gets Date.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Constructor Details
-
BasicOCSPResponseBC
public BasicOCSPResponseBC(org.bouncycastle.asn1.ocsp.BasicOCSPResponse basicOCSPResponse) Creates new wrapper instance forBasicOCSPResponse
.- Parameters:
-
basicOCSPResponse
-BasicOCSPResponse
to be wrapped
-
-
Method Details
-
getBasicOCSPResponse
public org.bouncycastle.asn1.ocsp.BasicOCSPResponse getBasicOCSPResponse()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
BasicOCSPResponse
.
-
getProducedAtDate
Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actualgetProducedAt
method, then gets Date.- Specified by:
-
getProducedAtDate
in interfaceIBasicOCSPResponse
- Returns:
- produced at date.
- Throws:
-
ParseException
- when parsing cannot be completed.
-