C# Class Org.BouncyCastle.X509.X509V2AttributeCertificateGenerator

Class to produce an X.509 Version 2 AttributeCertificate.
Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Add an attribute.
public AddAttribute ( X509Attribute attribute ) : void
attribute X509Attribute
Résultat void

AddExtension() public méthode

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
Résultat void

AddExtension() public méthode

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
Résultat void

Generate() public méthode

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

Generate() public méthode

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
Résultat IX509AttributeCertificate

Reset() public méthode

Reset the generator
public Reset ( ) : void
Résultat void

SetHolder() public méthode

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

SetIssuer() public méthode

Set the issuer.
public SetIssuer ( AttributeCertificateIssuer issuer ) : void
issuer AttributeCertificateIssuer
Résultat void

SetIssuerUniqueId() public méthode

public SetIssuerUniqueId ( bool iui ) : void
iui bool
Résultat void

SetNotAfter() public méthode

public SetNotAfter ( System.DateTime date ) : void
date System.DateTime
Résultat void

SetNotBefore() public méthode

public SetNotBefore ( System.DateTime date ) : void
date System.DateTime
Résultat void

SetSerialNumber() public méthode

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

SetSignatureAlgorithm() public méthode

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.
Résultat void

X509V2AttributeCertificateGenerator() public méthode

public X509V2AttributeCertificateGenerator ( ) : System
Résultat System