public class

Time

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.cms.Time

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
Time(DERObject time)
Time(Date date)
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.
Public Methods
Date getDate()
static Time getInstance(ASN1TaggedObject obj, boolean explicit)
static Time getInstance(Object obj)
String getTime()
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public Time (DERObject time)

public Time (Date date)

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.

Public Methods

public Date getDate ()

public static Time getInstance (ASN1TaggedObject obj, boolean explicit)

public static Time getInstance (Object obj)

public String getTime ()

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

 Time ::= CHOICE {
             utcTime        UTCTime,
             generalTime    GeneralizedTime }