|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.ac.Generalized_Time
public class Generalized_Time
This is the class that represents the GeneralizedTime ASN.1 construct. IAIK classes do have a class for GeneralizedTime, but its value is string. This class has a field that is a Calendar, which is deemed more useful when validating ACs.
Field Summary | |
---|---|
protected java.text.SimpleDateFormat |
formatter
|
int |
GENERALIZEDTIME_TAG
|
protected java.util.Calendar |
time
|
Constructor Summary | |
---|---|
protected |
Generalized_Time()
This constructor builds a Generalized_Time with the default TimeZone and set to current time (the system time at the time of creating this object). |
|
Generalized_Time(java.util.Calendar time)
This constructor builds a Generalized_Time with the time given as a Calendar. |
|
Generalized_Time(Generalized_Time gt)
This constructor copies the given Generalized_Time. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
decode(ASN1Object ao)
This method decodes ASN1Object. |
java.util.Calendar |
getTime()
Returns the Calendar set to the Time. |
void |
setTime(java.util.Calendar time)
Sets the time for this Generalized Time object using Calendar. |
ASN1Object |
toASN1Object()
This method returns the ASN1Object of GeneralizedTime. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String ident)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int GENERALIZEDTIME_TAG
protected final java.text.SimpleDateFormat formatter
protected java.util.Calendar time
Constructor Detail |
---|
protected Generalized_Time()
public Generalized_Time(Generalized_Time gt)
public Generalized_Time(java.util.Calendar time)
Method Detail |
---|
public java.util.Calendar getTime()
public void setTime(java.util.Calendar time)
public ASN1Object toASN1Object()
public void decode(ASN1Object ao) throws CodingException
ao
- - the ASN1Object of GeneralizedTime
CodingException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String ident)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |