public class Time extends ASN1Encodable implements ASN1Choice
BER, DER| Constructor and Description |
|---|
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.
|
Time(DERObject time) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodepublic Time(DERObject time)
public Time(Date date)
public static Time getInstance(ASN1TaggedObject obj, boolean explicit)
public String getTime()
public Date getDate()
public DERObject toASN1Object()
Time ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
toASN1Object in class ASN1EncodableCopyright © 2015. All rights reserved.