kz.gamma.hardware.asn1.cms
Class Time
java.lang.Object
kz.gamma.hardware.asn1.ASN1Encodable
kz.gamma.hardware.asn1.cms.Time
- All Implemented Interfaces:
- DEREncodable
public class Time
- extends ASN1Encodable
|
Constructor Summary |
Time(java.util.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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
time
DERObject time
Time
public Time(DERObject time)
- Parameters:
time -
Time
public Time(java.util.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.
- Parameters:
date -
getInstance
public static Time getInstance(ASN1TaggedObject obj,
boolean explicit)
- Parameters:
obj - explicit -
- Returns:
getInstance
public static Time getInstance(java.lang.Object obj)
- Parameters:
obj -
- Returns:
getTime
public java.lang.String getTime()
- Returns:
getDate
public java.util.Date getDate()
- Returns:
toASN1Object
public DERObject toASN1Object()
- Produce an object suitable for an ASN1OutputStream.
Time ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
- Specified by:
toASN1Object in class ASN1Encodable
- Returns:
Copyright © 2013 Gamma Technologies. All Rights Reserved.