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
Methods
AddAttribute(X509Attribute)
Add an attribute.
public void AddAttribute(X509Attribute attribute)
Parameters
attributeX509Attribute
AddExtension(string, bool, Asn1Encodable)
Add a given extension field for the standard extensions tag.
public void AddExtension(string oid, bool critical, Asn1Encodable extensionValue)
Parameters
oidstringcriticalboolextensionValueAsn1Encodable
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
Generate(ISignatureFactory)
Generate a new X509V2AttributeCertificate using the provided ISignatureFactory.
public X509V2AttributeCertificate Generate(ISignatureFactory signatureFactory)
Parameters
signatureFactoryISignatureFactoryA signature factory with the necessary algorithm details.
Returns
Reset()
Reset the generator
public void Reset()
SetHolder(AttributeCertificateHolder)
Set the Holder of this Attribute Certificate.
public void SetHolder(AttributeCertificateHolder holder)
Parameters
holderAttributeCertificateHolder
SetIssuer(AttributeCertificateIssuer)
Set the issuer.
public void SetIssuer(AttributeCertificateIssuer issuer)
Parameters
issuerAttributeCertificateIssuer
SetIssuerUniqueId(bool[])
public void SetIssuerUniqueId(bool[] iui)
Parameters
iuibool[]
SetNotAfter(DateTime)
public void SetNotAfter(DateTime date)
Parameters
dateDateTime
SetNotBefore(DateTime)
public void SetNotBefore(DateTime date)
Parameters
dateDateTime
SetSerialNumber(BigInteger)
Set the serial number for the certificate.
public void SetSerialNumber(BigInteger serialNumber)
Parameters
serialNumberBigInteger