X509ExtensionsGeneratorAddExtension(DerObjectIdentifier, Boolean, Byte) Method

Add an extension with the given oid and the passed in byte array to be wrapped 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,
	byte[] extValue
)

Parameters

oid  DerObjectIdentifier
OID for the extension.
critical  Boolean
True if critical, false otherwise.
extValue  Byte
The byte array to be wrapped.

See Also