X509ExtensionsGeneratorAddExtension(DerObjectIdentifier, Boolean, Asn1Encodable) Method

Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.

Definition

Namespace: Org.BouncyCastle.Asn1.X509
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public void AddExtension(
	DerObjectIdentifier oid,
	bool critical,
	Asn1Encodable extValue
)

Parameters

oid  DerObjectIdentifier
OID for the extension.
critical  Boolean
True if critical, false otherwise.
extValue  Asn1Encodable
The ASN.1 object to be included in the extension.

See Also