Add an extension with the given oid and the passed in byte array to be wrapped in the OCTET STRING associated with the extension.

Namespace: Org.BouncyCastle.Asn1.X509
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Collapse imageSyntax

C#
public void AddExtension(
	DerObjectIdentifier oid,
	bool critical,
	byte[] extValue
)
Visual Basic
Public Sub AddExtension ( _
	oid As DerObjectIdentifier, _
	critical As Boolean, _
	extValue As Byte() _
)
Visual C++
public:
void AddExtension(
	DerObjectIdentifier^ oid, 
	bool critical, 
	array<unsigned char>^ extValue
)

Parameters

oid
Type: Org.BouncyCastle.Asn1..::..DerObjectIdentifier
OID for the extension.
critical
Type: System..::..Boolean
True if critical, false otherwise.
extValue
Type: array<System..::..Byte>[]()[][]
The byte array to be wrapped.

Collapse imageSee Also