Asn1Builder Class

Represents ASN.1 Distinguished Encoding Rules (DER) binary builder.

Definition

Namespace: SysadminsLV.Asn1Parser
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public class Asn1Builder
Inheritance
Object    Asn1Builder

Methods

AddBitString(FuncAsn1Builder, Asn1Builder) Adds constructed bit string.
AddBitString(Byte, Byte) Adds ASN.1 BIT_STRING value.
AddBitString(Byte, Boolean) Adds ASN.1 BIT_STRING value.
AddBMPString Adds ASN.1 BMP_STRING value.
AddBoolean Adds ASN.1 Boolean value.
AddDerData(Byte) Adds arbitrary ASN.1-encoded data.
AddDerData(Byte, Byte) Adds pure raw data (untagged) that is then encoded using specified tag.
AddEnumerated Adds ASN.1 ENUMERATED value.
AddExplicit(Byte, FuncAsn1Builder, Asn1Builder) Adds explicitly tagged type. Explicit (EXPLICIT OPTIONAL) must have at least one primitive or constructed nested type.
AddExplicit(Byte, Byte, Boolean) Adds explicitly tagged type. Explicit (EXPLICIT OPTIONAL) must have at least one primitive or constructed nested type.
AddGeneralizedTime Adds ASN.1 GeneralizedTime value.
AddIA5String Adds ASN.1 IA5String value.
AddImplicit Adds implicitly tagged type. Implicit (IMPLICIT OPTIONAL, CHOICE) must derive from primitive types and cannot be constructed.
AddInteger Adds ASN.1 Integer value.
AddNull Adds ASN.1 NULL value.
AddNumericString Adds ASN.1 NumericString value.
AddObjectIdentifier Adds ASN.1 OBJECT_IDENTIFIER value.
AddOctetString(Byte) Adds ASN.1 OCTET_STRING value.
AddOctetString(FuncAsn1Builder, Asn1Builder) Adds constructed octet string.
AddPrintableString Adds ASN.1 PrintableString value.
AddRfcDateTime Adds date time value using RFC 5280 §4.1.2.5 encoding type.
AddSequence(Byte) Adds ASN.1 SEQUENCE value.
AddSequence(FuncAsn1Builder, Asn1Builder) Adds constructed SEQUENCE.
AddSet(Byte) Adds ASN.1 SET value.
AddSet(FuncAsn1Builder, Asn1Builder) Adds constructed SET.
AddTeletexString Adds ASN.1 TeletexString (T61String) value.
AddUniversalString Adds ASN.1 UniversalString value.
AddUtcTime Adds ASN.1 UTC_TIME value.
AddUTF8String Adds ASN.1 UTF8String value.
AddVideotexString Adds ASN.1 VideotexString value.
AddVisibleString Adds ASN.1 VisibleString value.
Create Creates a default instance of Asn1Builder class.
Create(Byte) Creates a default instance of Asn1Builder class from existing ASN.1-encoded data.
Encode Gets ASN.1-encoded byte array that represents current state of builder wrapped using outer ASN.1 type and returns new builder instance that contains current builder state.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetEncoded Gets ASN.1-encoded byte array that represents current state of builder wrapped using outer ASN.1 type.
GetHashCode
(Inherited from Object)
GetRawData Gets a raw data of the current state of the builder.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also