X509ExtensionUtilitiesFromExtensionValue(IX509Extension, DerObjectIdentifier) Method

Extract the value of the given extension, if it exists.

Definition

Namespace: Org.BouncyCastle.X509.Extension
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public static Asn1Object FromExtensionValue(
	IX509Extension extensions,
	DerObjectIdentifier oid
)

Parameters

extensions  IX509Extension
The extensions object.
oid  DerObjectIdentifier
The object identifier to obtain.

Return Value

Asn1Object
Asn1Object

Exceptions

Exceptionif the extension cannot be read.

See Also