X509ExtensionExtensionsDecode(Asn1Reader) Method

Decodes ASN.1-encoded byte array to an instance of X509Extension class.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static X509Extension Decode(
	Asn1Reader asn
)

Parameters

asn  Asn1Reader
ASN.1 reader that points to the beginning of the X.509 extension structure.

Return Value

X509Extension
Decoded extension object.

Exceptions

ArgumentNullExceptionasn parameter is null.
Asn1InvalidTagExceptionDecoder encountered an unexpected ASN.1 type identifier.

See Also