Asn1StringDecodeAnyString Method

Decodes any ASN.1-encoded binary string into ASN.1 string type instance.

Definition

Namespace: SysadminsLV.Asn1Parser.Universal
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public static Asn1String DecodeAnyString(
	byte[] rawData,
	IEnumerable<Asn1Type> allowedStringTypes = null
)

Parameters

rawData  Byte
Encoded ASN.1 string.
allowedStringTypes  IEnumerableAsn1Type  (Optional)
An optional collection of allowed string allowedStringTypes.

Return Value

Asn1String
ASN.1 string type instance.

Exceptions

ArgumentNullExceptionrawData parameter is null.
ArgumentExceptionrawData parameter is either too small or is not allowed by restriction.
Asn1InvalidTagException Input data is not valid string type.

See Also