Methods Summary |
---|
public org.bouncycastle.asn1.DERObject | getDERObject()Produce an object suitable for an ASN1OutputStream.
Time ::= CHOICE {
utcTime UTCTime,
generalTime GeneralizedTime }
return time;
|
public java.util.Date | getDate()
SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz");
return dateF.parse(this.getTime(), new ParsePosition(0));
|
public static org.bouncycastle.asn1.x509.Time | getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
return getInstance(obj.getObject());
|
public static org.bouncycastle.asn1.x509.Time | getInstance(java.lang.Object obj)
if (obj instanceof Time)
{
return (Time)obj;
}
else if (obj instanceof DERUTCTime)
{
return new Time((DERUTCTime)obj);
}
else if (obj instanceof DERGeneralizedTime)
{
return new Time((DERGeneralizedTime)obj);
}
throw new IllegalArgumentException("unknown object in factory");
|
public java.lang.String | getTime()
if (time instanceof DERUTCTime)
{
return ((DERUTCTime)time).getAdjustedTime();
}
else
{
return ((DERGeneralizedTime)time).getTime();
}
|