org.webdocwf.util.smime.der
Class DERUTCTime

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERUTCTime

public class DERUTCTime
extends DERObject

DERUTCTime is primitive type of DER encoded object which represents Coordinate Universal Time (or Greenwich Mean Time) in the ASN.1 notation in format YYMMDDhhmmssZ. For example: 01.02.1971. 11:25:30 GMT+1h take a form in DERUTCTime object: 710201102530Z.


Constructor Summary
DERUTCTime()
          Constructs UTC time according to user's current local settings (increased or decreased for time difference to obtain Greenwich Mean Time).
DERUTCTime(byte[] utcTime0)
          Constructs UTC time according to the definition of elements in byte array it the following form: YYMMDDhhmmssZ
DERUTCTime(java.util.Date dat0)
          Constructs UTC time according to the submited information in Date class
DERUTCTime(java.util.GregorianCalendar cal0)
          Constructs UTC time according to submited information in GregorianCalendar class.
DERUTCTime(java.lang.String utcTime0)
          Constructs UTC time according to the definition of elements in String it the following form: YYMMDDhhmmssZ
 
Methods inherited from class org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, getDEREncoded, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DERUTCTime

public DERUTCTime()
           throws SMIMEException
Constructs UTC time according to user's current local settings (increased or decreased for time difference to obtain Greenwich Mean Time).
Throws:
SMIMEException - thrown in super class constructor. Also it can be caused by non SMIMEException which is: UnsupportedEncodingException.

DERUTCTime

public DERUTCTime(java.util.Date dat0)
           throws SMIMEException
Constructs UTC time according to the submited information in Date class
Parameters:
dat0 - information about date and time.
Throws:
SMIMEException - thrown in super class constructor. Also, it can be caused by non SMIMEException which is: UnsupportedEncodingException.

DERUTCTime

public DERUTCTime(java.util.GregorianCalendar cal0)
           throws SMIMEException
Constructs UTC time according to submited information in GregorianCalendar class.
Parameters:
cal0 - information about date and time.
Throws:
SMIMEException - thrown in super class constructor. Also, it can be caused by non SMIMEException which is: UnsupportedEncodingException.

DERUTCTime

public DERUTCTime(byte[] utcTime0)
           throws SMIMEException
Constructs UTC time according to the definition of elements in byte array it the following form: YYMMDDhhmmssZ
Parameters:
utcTime0 - byte array representation of UTC elements.
Throws:
SMIMEException - thrown in super class constructor.

DERUTCTime

public DERUTCTime(java.lang.String utcTime0)
           throws SMIMEException
Constructs UTC time according to the definition of elements in String it the following form: YYMMDDhhmmssZ
Parameters:
utcTime0 - is String representation of UTC elements.
Throws:
SMIMEException - thrown in super class constructor. Also, it can be caused by non SMIMEException which is: UnsupportedEncodingException.


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.