Package org.apache.harmony.security.asn1
Class ASN1UTCTime
java.lang.Object
org.apache.harmony.security.asn1.ASN1Type
org.apache.harmony.security.asn1.ASN1StringType
org.apache.harmony.security.asn1.ASN1Time
org.apache.harmony.security.asn1.ASN1UTCTime
- All Implemented Interfaces:
ASN1Constants
public final class ASN1UTCTime extends ASN1Time
This class represents ASN.1 UTCTime type
-
Field Summary
Fields Modifier and Type Field Description static intUTC_HMLength for the pattern: YYMMDDhhmm'Z'static intUTC_HMSLength for the pattern: YYMMDDhhmmss'Z'static intUTC_LOCAL_HMLength for the pattern: YYMMDDhhmm('+'/'-')hhmmstatic intUTC_LOCAL_HMSLength for the pattern: YYMMDDhhmmss('+'/'-')hhmmFields inherited from class org.apache.harmony.security.asn1.ASN1StringType
BMPSTRING, GENERALSTRING, IA5STRING, PRINTABLESTRING, TELETEXSTRING, UNIVERSALSTRING, UTF8STRINGFields inherited from interface org.apache.harmony.security.asn1.ASN1Constants
CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE, CLASS_UNIVERSAL, PC_CONSTRUCTED, PC_PRIMITIVE, TAG_ANY, TAG_BITSTRING, TAG_BMPSTRING, TAG_BOOLEAN, TAG_C_BITSTRING, TAG_C_GENERALIZEDTIME, TAG_C_OCTETSTRING, TAG_C_SEQUENCE, TAG_C_SEQUENCEOF, TAG_C_SET, TAG_C_SETOF, TAG_C_UTCTIME, TAG_C_UTF8STRING, TAG_CHOICE, TAG_EMBEDDEDPDV, TAG_ENUM, TAG_EXTERNAL, TAG_GENERALIZEDTIME, TAG_GENERALSTRING, TAG_GRAPHICSTRING, TAG_IA5STRING, TAG_INSTANCEOF, TAG_INTEGER, TAG_ISO646STRING, TAG_NULL, TAG_NUMERICSTRING, TAG_OBJDESCRIPTOR, TAG_OCTETSTRING, TAG_OID, TAG_PRINTABLESTRING, TAG_REAL, TAG_RELATIVEOID, TAG_SEQUENCE, TAG_SEQUENCEOF, TAG_SET, TAG_SETOF, TAG_T61STRING, TAG_TELETEXSTRING, TAG_UNIVERSALSTRING, TAG_UTCTIME, TAG_UTF8STRING, TAG_VIDEOTEXSTRING, TAG_VISIBLESTRING -
Constructor Summary
Constructors Constructor Description ASN1UTCTime()Constructs ASN.1 UTCTime type The constructor is provided for inheritance purposes when there is a need to create a custom ASN.1 UTCTime type. -
Method Summary
Modifier and Type Method Description Objectdecode(BerInputStream in)Decodes ASN.1 type.voidencodeContent(BerOutputStream out)static ASN1UTCTimegetInstance()Returns ASN.1 UTCTime type default implementation The default implementation works with encoding that is represented as Date object.voidsetEncodingContent(BerOutputStream out)Methods inherited from class org.apache.harmony.security.asn1.ASN1Time
getDecodedObjectMethods inherited from class org.apache.harmony.security.asn1.ASN1StringType
checkTag, encodeASN
-
Field Details
-
UTC_HM
public static final int UTC_HMLength for the pattern: YYMMDDhhmm'Z'- See Also:
- Constant Field Values
-
UTC_HMS
public static final int UTC_HMSLength for the pattern: YYMMDDhhmmss'Z'- See Also:
- Constant Field Values
-
UTC_LOCAL_HM
public static final int UTC_LOCAL_HMLength for the pattern: YYMMDDhhmm('+'/'-')hhmm- See Also:
- Constant Field Values
-
UTC_LOCAL_HMS
public static final int UTC_LOCAL_HMSLength for the pattern: YYMMDDhhmmss('+'/'-')hhmm- See Also:
- Constant Field Values
-
-
Constructor Details
-
ASN1UTCTime
public ASN1UTCTime()Constructs ASN.1 UTCTime type The constructor is provided for inheritance purposes when there is a need to create a custom ASN.1 UTCTime type. To get a default implementation it is recommended to use getInstance() method.
-
-
Method Details
-
getInstance
Returns ASN.1 UTCTime type default implementation The default implementation works with encoding that is represented as Date object.- Returns:
- ASN.1 UTCTime type default implementation
-
decode
Description copied from class:ASN1TypeDecodes ASN.1 type.- Overrides:
decodein classASN1StringType- Throws:
IOException- if an I/O error occurs or the end of the stream is reached
-
encodeContent
- Overrides:
encodeContentin classASN1StringType
-
setEncodingContent
- Overrides:
setEncodingContentin classASN1StringType
-