Package com.itextpdf.bouncycastle.asn1
Class ASN1GeneralizedTimeBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
-
- com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
-
- com.itextpdf.bouncycastle.asn1.ASN1GeneralizedTimeBC
-
- All Implemented Interfaces:
IASN1Encodable
,IASN1GeneralizedTime
,IASN1Primitive
public class ASN1GeneralizedTimeBC extends ASN1PrimitiveBC implements IASN1GeneralizedTime
Wrapper class forASN1GeneralizedTime
.
-
-
Constructor Summary
Constructors Constructor Description ASN1GeneralizedTimeBC(org.bouncycastle.asn1.ASN1GeneralizedTime asn1GeneralizedTime)
Creates new wrapper instance forASN1GeneralizedTime
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1GeneralizedTime
getASN1GeneralizedTime()
Gets actual org.bouncycastle object being wrapped.java.util.Date
getDate()
Calls actualgetDate
method for the wrapped ASN1GeneralizedTime object.-
Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1PrimitiveBC
getEncoded, getEncoded, getPrimitive
-
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
-
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive
getEncoded, getEncoded
-
-
-
-
Method Detail
-
getASN1GeneralizedTime
public org.bouncycastle.asn1.ASN1GeneralizedTime getASN1GeneralizedTime()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1GeneralizedTime
.
-
getDate
public java.util.Date getDate() throws java.text.ParseException
Calls actualgetDate
method for the wrapped ASN1GeneralizedTime object.- Specified by:
getDate
in interfaceIASN1GeneralizedTime
- Returns:
Date
date stored in the wrapped ASN1GeneralizedTime.- Throws:
java.text.ParseException
- in case of some parsing error.
-
-