Table of Contents

Class X509V2AttributeCertificateGenerator

Namespace
Org.BouncyCastle.X509
Assembly
BouncyCastle.Cryptography.dll
public class X509V2AttributeCertificateGenerator
Inheritance
X509V2AttributeCertificateGenerator
Inherited Members

Remarks

Class to produce an X.509 Version 2 AttributeCertificate.

Constructors

X509V2AttributeCertificateGenerator()

public X509V2AttributeCertificateGenerator()

Properties

SignatureAlgNames

Allows enumeration of the signature names supported by the generator.

[Obsolete("Will be removed")]
public IEnumerable<string> SignatureAlgNames { get; }

Property Value

IEnumerable<string>

Methods

AddAttribute(X509Attribute)

Add an attribute.

public void AddAttribute(X509Attribute attribute)

Parameters

attribute X509Attribute

AddExtension(string, bool, Asn1Encodable)

Add a given extension field for the standard extensions tag.

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

Parameters

oid string
critical bool
extensionValue Asn1Encodable

AddExtension(string, bool, byte[])

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 void AddExtension(string oid, bool critical, byte[] extensionValue)

Parameters

oid string
critical bool
extensionValue byte[]

Generate(ISignatureFactory)

Generate a new X509V2AttributeCertificate using the provided ISignatureFactory.

public X509V2AttributeCertificate Generate(ISignatureFactory signatureFactory)

Parameters

signatureFactory ISignatureFactory

A signature factory with the necessary algorithm details.

Returns

X509V2AttributeCertificate

An X509V2AttributeCertificate.

Reset()

Reset the generator

public void Reset()

SetHolder(AttributeCertificateHolder)

Set the Holder of this Attribute Certificate.

public void SetHolder(AttributeCertificateHolder holder)

Parameters

holder AttributeCertificateHolder

SetIssuer(AttributeCertificateIssuer)

Set the issuer.

public void SetIssuer(AttributeCertificateIssuer issuer)

Parameters

issuer AttributeCertificateIssuer

SetIssuerUniqueId(bool[])

public void SetIssuerUniqueId(bool[] iui)

Parameters

iui bool[]

SetNotAfter(DateTime)

public void SetNotAfter(DateTime date)

Parameters

date DateTime

SetNotBefore(DateTime)

public void SetNotBefore(DateTime date)

Parameters

date DateTime

SetSerialNumber(BigInteger)

Set the serial number for the certificate.

public void SetSerialNumber(BigInteger serialNumber)

Parameters

serialNumber BigInteger