|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.eac.PackedDate
public class PackedDate
EAC encoding date object
Constructor Summary | |
---|---|
PackedDate(java.util.Date time)
Base constructor from a java.util.date object. |
|
PackedDate(java.util.Date time,
java.util.Locale locale)
Base constructor from a java.util.date object. |
|
PackedDate(java.lang.String time)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.util.Date |
getDate()
return the time as a date based on whatever a 2 digit year will return. |
byte[] |
getEncoding()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PackedDate(java.lang.String time)
public PackedDate(java.util.Date time)
time
- a date object representing the time of interest.public PackedDate(java.util.Date time, java.util.Locale locale)
time
- a date object representing the time of interest.locale
- an appropriate Locale for producing an ASN.1 GeneralizedTime value.Method Detail |
---|
public java.util.Date getDate() throws java.text.ParseException
java.text.ParseException
- if the date string cannot be parsed.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getEncoding()
|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |