org.apache.asn1.der
Class DERUTCTime

java.lang.Object
  extended byorg.apache.asn1.der.DERObject
      extended byorg.apache.asn1.der.DERString
          extended byorg.apache.asn1.der.DERUTCTime
All Implemented Interfaces:
DEREncodable

public class DERUTCTime
extends DERString

DER UTC time object.


Field Summary
private static java.text.SimpleDateFormat dateFormat
           
private static java.util.TimeZone UTC_TIME_ZONE
           
 
Fields inherited from class org.apache.asn1.der.DERObject
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SET, T61_STRING, tag, TAGGED, TERMINATOR, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, value, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
DERUTCTime(byte[] value)
          Basic DERObject constructor.
 
Method Summary
 java.util.Date getDate()
          Lazy accessor
static DERUTCTime valueOf(java.util.Date date)
          Static factory method, type-conversion operator.
 
Methods inherited from class org.apache.asn1.der.DERString
byteArrayToString, getString, stringToByteArray
 
Methods inherited from class org.apache.asn1.der.DERObject
encode, equals, getOctets, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC_TIME_ZONE

private static final java.util.TimeZone UTC_TIME_ZONE

dateFormat

private static final java.text.SimpleDateFormat dateFormat
Constructor Detail

DERUTCTime

public DERUTCTime(byte[] value)
Basic DERObject constructor.

Method Detail

valueOf

public static DERUTCTime valueOf(java.util.Date date)
Static factory method, type-conversion operator.


getDate

public java.util.Date getDate()
                       throws java.text.ParseException
Lazy accessor

Returns:
Date representation of this DER UTC Time
Throws:
java.text.ParseException


Copyright © 2005-2006 . All Rights Reserved.