C# Класс Org.BouncyCastle.X509.X509V2AttributeCertificateGenerator

Class to produce an X.509 Version 2 AttributeCertificate.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddAttribute() публичный Метод

Add an attribute.
public AddAttribute ( X509Attribute attribute ) : void
attribute X509Attribute
Результат void

AddExtension() публичный Метод

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
Результат void

AddExtension() публичный Метод

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
Результат void

Generate() публичный Метод

Generate an X509 certificate, based on the current issuer and subject.
public Generate ( AsymmetricKeyParameter publicKey ) : IX509AttributeCertificate
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
Результат IX509AttributeCertificate

Generate() публичный Метод

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
Результат IX509AttributeCertificate

Reset() публичный Метод

Reset the generator
public Reset ( ) : void
Результат void

SetHolder() публичный Метод

Set the Holder of this Attribute Certificate.
public SetHolder ( AttributeCertificateHolder holder ) : void
holder AttributeCertificateHolder
Результат void

SetIssuer() публичный Метод

Set the issuer.
public SetIssuer ( AttributeCertificateIssuer issuer ) : void
issuer AttributeCertificateIssuer
Результат void

SetIssuerUniqueId() публичный Метод

public SetIssuerUniqueId ( bool iui ) : void
iui bool
Результат void

SetNotAfter() публичный Метод

public SetNotAfter ( System.DateTime date ) : void
date System.DateTime
Результат void

SetNotBefore() публичный Метод

public SetNotBefore ( System.DateTime date ) : void
date System.DateTime
Результат void

SetSerialNumber() публичный Метод

Set the serial number for the certificate.
public SetSerialNumber ( BigInteger serialNumber ) : void
serialNumber Org.BouncyCastle.Math.BigInteger
Результат void

SetSignatureAlgorithm() публичный Метод

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.
Результат void

X509V2AttributeCertificateGenerator() публичный Метод

public X509V2AttributeCertificateGenerator ( ) : System
Результат System