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.BasicOCSPResponsegetBasicOCSPResponse()Gets actual org.bouncycastle object being wrapped.java.util.DategetProducedAtDate()Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actualgetProducedAtmethod, 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.ParseExceptionGets TbsResponseData for the wrapped BasicOCSPResponse object and calls actualgetProducedAtmethod, then gets Date.- Specified by:
getProducedAtDatein interfaceIBasicOCSPResponse- Returns:
- produced at date.
- Throws:
java.text.ParseException- when parsing cannot be completed.
-
-