C# Class Org.BouncyCastle.Asn1.X509.X509ExtensionsGenerator

Generator for X.509 extensions
Show file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
AddExtension ( DerObjectIdentifier oid, bool critical, Asn1Encodable extValue ) : void

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

AddExtension ( DerObjectIdentifier oid, bool critical, byte extValue ) : void

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

Generate ( ) : X509Extensions

Generate an X509Extensions object based on the current state of the generator.

Reset ( ) : void

Reset the generator

Method Details

AddExtension() public method

Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.
public AddExtension ( DerObjectIdentifier oid, bool critical, Asn1Encodable extValue ) : void
oid DerObjectIdentifier OID for the extension.
critical bool True if critical, false otherwise.
extValue Asn1Encodable The ASN.1 object to be included in the extension.
return void

AddExtension() public 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.
public AddExtension ( DerObjectIdentifier oid, bool critical, byte extValue ) : void
oid DerObjectIdentifier OID for the extension.
critical bool True if critical, false otherwise.
extValue byte The byte array to be wrapped.
return void

Generate() public method

Generate an X509Extensions object based on the current state of the generator.
public Generate ( ) : X509Extensions
return X509Extensions

Reset() public method

Reset the generator
public Reset ( ) : void
return void