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
Wrapper class for
ASN1GeneralizedTime
.
-
Constructor Summary
ConstructorDescriptionASN1GeneralizedTimeBC
(org.bouncycastle.asn1.ASN1GeneralizedTime asn1GeneralizedTime) Creates new wrapper instance forASN1GeneralizedTime
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1GeneralizedTime
Gets actual org.bouncycastle object being wrapped.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
-
Constructor Details
-
ASN1GeneralizedTimeBC
public ASN1GeneralizedTimeBC(org.bouncycastle.asn1.ASN1GeneralizedTime asn1GeneralizedTime) Creates new wrapper instance forASN1GeneralizedTime
.- Parameters:
-
asn1GeneralizedTime
-ASN1GeneralizedTime
to be wrapped
-
-
Method Details
-
getASN1GeneralizedTime
public org.bouncycastle.asn1.ASN1GeneralizedTime getASN1GeneralizedTime()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1GeneralizedTime
.
-
getDate
Calls actualgetDate
method for the wrapped ASN1GeneralizedTime object.- Specified by:
-
getDate
in interfaceIASN1GeneralizedTime
- Returns:
-
Date
date stored in the wrapped ASN1GeneralizedTime. - Throws:
-
ParseException
- in case of some parsing error.
-