Asn1DateTime Class Reference

This is a container class for holding the components of an ASN.1 DATE-TIME value.

Inheritance diagram for Asn1DateTime:
Asn18BitCharString Asn1CharString Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1DateTime ()
override void Decode (Asn1PerDecodeBuffer buffer)
override void Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
override void Encode (Asn1PerOutputStream outstr)
override void Encode (Asn1PerEncodeBuffer buffer)
override void Encode (Asn1BerOutputStream outstr, bool explicitTagging)
override int Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging)

Constructor & Destructor Documentation

Asn1DateTime (  ) 

The default constructor creates an empty string object.


Member Function Documentation

override void Decode ( Asn1PerDecodeBuffer  buffer  )  [virtual]

This method decodes an ASN.1 DATE-TIME value in accordance with the packed encoding rules (PER).

The decoded result is stored in the public

value

member variable in the Asn1CharString base class.

Parameters:
buffer Decode message buffer object

Reimplemented from Asn18BitCharString.

override void Decode ( Asn1BerDecodeBuffer  buffer,
bool  explicitTagging,
int  implicitLength 
) [virtual]

This method decodes an ASN.1 DATE-TIME string value including the UNIVERSAL tag value and length if explicit tagging is specified.

Parameters:
buffer Decode message buffer object
explicitTagging Flag indicating element is explicitly tagged
implicitLength Length of contents if implicit

Reimplemented from Asn1Type.

override void Encode ( Asn1PerOutputStream  outstr  )  [virtual]

This method encodes an ASN.1 DATE-TIME value in accordance with the packed encoding rules (PER) directly into the stream.

This version of the method assumes no permitted alphabet or size constraints.

The value to encode is stored in the public

value

member variable in the Asn1CharString base class.

Parameters:
outstr PER Encode message stream object

Reimplemented from Asn18BitCharString.

override void Encode ( Asn1PerEncodeBuffer  buffer  )  [virtual]

This method encodes an ASN.1 DATE-TIME value in accordance with the packed encoding rules (PER).

The value to encode is stored in the public

value

member variable in the Asn1CharString base class.

Parameters:
buffer Encode message buffer object

Reimplemented from Asn18BitCharString.

override void Encode ( Asn1BerOutputStream  outstr,
bool  explicitTagging 
) [virtual]

This method encodes and writes to the stream an ASN.1 DATE-TIME value including the UNIVERSAL tag value and length if explicit tagging is specified.

This overloaded version uses the Basic Encoding Rules (BER).

Parameters:
outstr BER Output Stream object
explicitTagging Flag indicating explicit tagging should be done

Reimplemented from Asn1Type.

override int Encode ( Asn1BerEncodeBuffer  buffer,
bool  explicitTagging 
) [virtual]

This method encodes an ASN.1 DATE-TIME string type.

The UNIVERSAL tag value and length is also encoded if explicit tagging is specified.

Parameters:
buffer Encode message buffer object
explicitTagging Flag indicating explicit tagging should be done
Returns:
Length in octets of encoded component

Reimplemented from Asn1Type.