Class BasicOCSPResponseBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
-
- com.itextpdf.bouncycastle.asn1.ocsp.BasicOCSPResponseBC
-
- All Implemented Interfaces:
IASN1Encodable
,IBasicOCSPResponse
public class BasicOCSPResponseBC extends ASN1EncodableBC implements IBasicOCSPResponse
Wrapper class forBasicOCSPResponse
.
-
-
Constructor Summary
Constructors Constructor Description BasicOCSPResponseBC(org.bouncycastle.asn1.ocsp.BasicOCSPResponse basicOCSPResponse)
Creates new wrapper instance forBasicOCSPResponse
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ocsp.BasicOCSPResponse
getBasicOCSPResponse()
Gets actual org.bouncycastle object being wrapped.java.util.Date
getProducedAtDate()
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
-
-
-
-
Method Detail
-
getBasicOCSPResponse
public org.bouncycastle.asn1.ocsp.BasicOCSPResponse getBasicOCSPResponse()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
BasicOCSPResponse
.
-
getProducedAtDate
public java.util.Date getProducedAtDate() throws java.text.ParseException
Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actualgetProducedAt
method, then gets Date.- Specified by:
getProducedAtDate
in interfaceIBasicOCSPResponse
- Returns:
- produced at date.
- Throws:
java.text.ParseException
- when parsing cannot be completed.
-
-