Package org.gudy.bouncycastle.asn1.x509
Class Time
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.Time
- All Implemented Interfaces:
ASN1Choice
,DEREncodable
-
Field Summary
FieldsFields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
static Time
getInstance
(Object obj) static Time
getInstance
(ASN1TaggedObject obj, boolean explicit) getTime()
Produce an object suitable for an ASN1OutputStream.toString()
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
time
DERObject time
-
-
Constructor Details
-
Time
-
Time
creates a time object from a given date - if the date is between 1950 and 2049 a UTCTime object is generated, otherwise a GeneralizedTime is used.
-
-
Method Details
-
getInstance
-
getInstance
-
getTime
-
getDate
-
toASN1Object
Produce an object suitable for an ASN1OutputStream.Time ::= CHOICE { utcTime UTCTime, generalTime GeneralizedTime }
- Specified by:
toASN1Object
in classASN1Encodable
-
toString
-