Asn1DateTime Class

Represents base class for UTCTime and GeneralizedTime ASN.1 types

Definition

Namespace: SysadminsLV.Asn1Parser.Universal
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public abstract class Asn1DateTime : Asn1Universal
Inheritance
Object    Asn1Universal    Asn1DateTime
Derived

Constructors

Asn1DateTime(Asn1Type) Initializes a new instance of Asn1DateTime class.
Asn1DateTime(Asn1Reader, NullableAsn1Type) Initializes a new instance of Asn1DateTime class from an existing Asn1Reader object.

Properties

IsContainer Indicates whether the current structure is container. This includes all constructed types and may include OCTET_STRING and BIT_STRING with encapsulated types. OCTET_STRING and BIT_STRING use primitive type form.
(Inherited from Asn1Universal)
RawData Gets the full tag raw data, including header and payload information.
(Inherited from Asn1Universal)
Obsolete.
Tag Gets the numeric tag value of the current ASN type.
(Inherited from Asn1Universal)
TagName Gets the textual name of the ASN tag.
(Inherited from Asn1Universal)
Value Gets date/time value associated with the current date/time object.
ZoneInfo Gets the time zone information for the current object.

Methods

CreateRfcDateTime Encodes a .NET DateTime object to a ASN.1-encoded byte array. This method is designed to conform RFC 5280 requirement, so dates before 1950 and after 2050 year are required to be encoded by using Generalized Time encoding. UTC Time encoding is not allowed for periods beyond 1950 - 2049 years.
DecodeAnyDateTime Gets an ASN.1 date/time instance from current position in ASN.1 reader.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
Format Encodes current tag to either, Base64 or hex string.
(Inherited from Asn1Universal)
GetDisplayValue Gets decoded type value. If the value cannot be decoded, a hex dump is returned.
(Inherited from Asn1Universal)
GetHashCode
(Inherited from Object)
GetRawData Gets the full tag raw data, including header and payload information.
(Inherited from Asn1Universal)
GetType
(Inherited from Object)
Initialize Initializes Asn1Universal object from an existing Asn1Reader object.
(Inherited from Asn1Universal)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also