org.apache.directory.shared.asn1.der
Class DERGeneralizedTime

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

public class DERGeneralizedTime
extends DERString

DER Generalized time object.


Field Summary
private static java.text.SimpleDateFormat dateFormat
           
private static java.util.TimeZone UTC_TIME_ZONE
           
 
Fields inherited from class org.apache.directory.shared.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
(package private) DERGeneralizedTime(byte[] value)
          Basic DERObject constructor.
 
Method Summary
 java.util.Date getDate()
          Lazy accessor
static DERGeneralizedTime valueOf(java.util.Date date)
          Static factory method, type-conversion operator.
 
Methods inherited from class org.apache.directory.shared.asn1.der.DERString
byteArrayToString, getString, stringToByteArray
 
Methods inherited from class org.apache.directory.shared.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

DERGeneralizedTime

DERGeneralizedTime(byte[] value)
Basic DERObject constructor.

Method Detail

valueOf

public static DERGeneralizedTime 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 Generalized Time
Throws:
java.text.ParseException


Copyright © 2003-2006 . All Rights Reserved.