C# Class Org.BouncyCastle.X509.X509V2AttributeCertificateGenerator

Class to produce an X.509 Version 2 AttributeCertificate.
Exibir arquivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
AddAttribute ( X509Attribute attribute ) : void

Add an attribute.

AddExtension ( string oid, bool critical, Asn1Encodable extensionValue ) : void

Add a given extension field for the standard extensions tag.

AddExtension ( string oid, bool critical, byte extensionValue ) : void

Add a given extension field for the standard extensions tag. The value parameter becomes the contents of the octet string associated with the extension.

Generate ( AsymmetricKeyParameter publicKey ) : IX509AttributeCertificate

Generate an X509 certificate, based on the current issuer and subject.

Generate ( AsymmetricKeyParameter publicKey, SecureRandom random ) : IX509AttributeCertificate

Generate an X509 certificate, based on the current issuer and subject, using the supplied source of randomness, if required.

Reset ( ) : void

Reset the generator

SetHolder ( AttributeCertificateHolder holder ) : void

Set the Holder of this Attribute Certificate.

SetIssuer ( AttributeCertificateIssuer issuer ) : void

Set the issuer.

SetIssuerUniqueId ( bool iui ) : void
SetNotAfter ( System.DateTime date ) : void
SetNotBefore ( System.DateTime date ) : void
SetSerialNumber ( BigInteger serialNumber ) : void

Set the serial number for the certificate.

SetSignatureAlgorithm ( string signatureAlgorithm ) : void

Set the signature algorithm. This can be either a name or an OID, names are treated as case insensitive.

X509V2AttributeCertificateGenerator ( ) : System

Method Details

AddAttribute() public method

Add an attribute.
public AddAttribute ( X509Attribute attribute ) : void
attribute X509Attribute
return void

AddExtension() public method

Add a given extension field for the standard extensions tag.
public AddExtension ( string oid, bool critical, Asn1Encodable extensionValue ) : void
oid string
critical bool
extensionValue Org.BouncyCastle.Asn1.Asn1Encodable
return void

AddExtension() public method

Add a given extension field for the standard extensions tag. The value parameter becomes the contents of the octet string associated with the extension.
public AddExtension ( string oid, bool critical, byte extensionValue ) : void
oid string
critical bool
extensionValue byte
return void

Generate() public method

Generate an X509 certificate, based on the current issuer and subject.
public Generate ( AsymmetricKeyParameter publicKey ) : IX509AttributeCertificate
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
return IX509AttributeCertificate

Generate() public method

Generate an X509 certificate, based on the current issuer and subject, using the supplied source of randomness, if required.
public Generate ( AsymmetricKeyParameter publicKey, SecureRandom random ) : IX509AttributeCertificate
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
random Org.BouncyCastle.Security.SecureRandom
return IX509AttributeCertificate

Reset() public method

Reset the generator
public Reset ( ) : void
return void

SetHolder() public method

Set the Holder of this Attribute Certificate.
public SetHolder ( AttributeCertificateHolder holder ) : void
holder AttributeCertificateHolder
return void

SetIssuer() public method

Set the issuer.
public SetIssuer ( AttributeCertificateIssuer issuer ) : void
issuer AttributeCertificateIssuer
return void

SetIssuerUniqueId() public method

public SetIssuerUniqueId ( bool iui ) : void
iui bool
return void

SetNotAfter() public method

public SetNotAfter ( System.DateTime date ) : void
date System.DateTime
return void

SetNotBefore() public method

public SetNotBefore ( System.DateTime date ) : void
date System.DateTime
return void

SetSerialNumber() public method

Set the serial number for the certificate.
public SetSerialNumber ( BigInteger serialNumber ) : void
serialNumber Org.BouncyCastle.Math.BigInteger
return void

SetSignatureAlgorithm() public method

Set the signature algorithm. This can be either a name or an OID, names are treated as case insensitive.
public SetSignatureAlgorithm ( string signatureAlgorithm ) : void
signatureAlgorithm string The algorithm name.
return void

X509V2AttributeCertificateGenerator() public method

public X509V2AttributeCertificateGenerator ( ) : System
return System