public class PackedDate extends Object
Constructor and Description |
---|
PackedDate(Date time)
Base constructor from a java.util.date object.
|
PackedDate(Date time,
Locale locale)
Base constructor from a java.util.date object.
|
PackedDate(String time) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getDate()
return the time as a date based on whatever a 2 digit year will return.
|
byte[] |
getEncoding() |
int |
hashCode() |
String |
toString() |
public PackedDate(String time)
public PackedDate(Date time)
time
- a date object representing the time of interest.public PackedDate(Date time, Locale locale)
time
- a date object representing the time of interest.locale
- an appropriate Locale for producing an ASN.1 GeneralizedTime value.public Date getDate() throws ParseException
ParseException
- if the date string cannot be parsed.public byte[] getEncoding()
Copyright © 2016 BouncyCastle.org. All rights reserved.