Add an extension with the given oid and the passed in value to be included
in the OCTET STRING associated with the extension.
Namespace: Org.BouncyCastle.Asn1.X509Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public void AddExtension( DerObjectIdentifier oid, bool critical, Asn1Encodable extValue ) |
Visual Basic |
---|
Public Sub AddExtension ( _ oid As DerObjectIdentifier, _ critical As Boolean, _ extValue As Asn1Encodable _ ) |
Visual C++ |
---|
public: void AddExtension( DerObjectIdentifier^ oid, bool critical, Asn1Encodable^ extValue ) |
Parameters
- oid
- Type: Org.BouncyCastle.Asn1..::..DerObjectIdentifier
OID for the extension.
- critical
- Type: System..::..Boolean
True if critical, false otherwise.
- extValue
- Type: Org.BouncyCastle.Asn1..::..Asn1Encodable
The ASN.1 object to be included in the extension.