public class

X509V2AttributeCertificateGenerator

extends Object
java.lang.Object
   ↳ org.bouncycastle.x509.X509V2AttributeCertificateGenerator

This class is deprecated.
use org.bouncycastle.cert.X509v2AttributeCertificateBuilder

Class Overview

class to produce an X.509 Version 2 AttributeCertificate.

Summary

Public Constructors
X509V2AttributeCertificateGenerator()
Public Methods
void addAttribute(X509Attribute attribute)
add an attribute
void addExtension(String oid, boolean critical, ASN1Encodable value)
add a given extension field for the standard extensions tag
void addExtension(String oid, boolean critical, byte[] value)
add a given extension field for the standard extensions tag The value parameter becomes the contents of the octet string associated with the extension.
X509AttributeCertificate generate(PrivateKey key, String provider)
generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing.
X509AttributeCertificate generate(PrivateKey key, String provider, SecureRandom random)
generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing and the supplied source of randomness, if required.
X509AttributeCertificate generateCertificate(PrivateKey key, String provider, SecureRandom random)
This method is deprecated. use generate()
X509AttributeCertificate generateCertificate(PrivateKey key, String provider)
This method is deprecated. use generate()
Iterator getSignatureAlgNames()
Return an iterator of the signature names supported by the generator.
void reset()
reset the generator
void setHolder(AttributeCertificateHolder holder)
Set the Holder of this Attribute Certificate
void setIssuer(AttributeCertificateIssuer issuer)
Set the issuer
void setIssuerUniqueId(boolean[] iui)
void setNotAfter(Date date)
void setNotBefore(Date date)
void setSerialNumber(BigInteger serialNumber)
set the serial number for the certificate.
void setSignatureAlgorithm(String signatureAlgorithm)
Set the signature algorithm.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public X509V2AttributeCertificateGenerator ()

Public Methods

public void addAttribute (X509Attribute attribute)

add an attribute

public void addExtension (String oid, boolean critical, ASN1Encodable value)

add a given extension field for the standard extensions tag

Throws
IOException

public void addExtension (String oid, boolean critical, byte[] value)

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 X509AttributeCertificate generate (PrivateKey key, String provider)

generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing.

public X509AttributeCertificate generate (PrivateKey key, String provider, SecureRandom random)

generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing and the supplied source of randomness, if required.

public X509AttributeCertificate generateCertificate (PrivateKey key, String provider, SecureRandom random)

This method is deprecated.
use generate()

generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing and the supplied source of randomness, if required.

public X509AttributeCertificate generateCertificate (PrivateKey key, String provider)

This method is deprecated.
use generate()

generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing.

public Iterator getSignatureAlgNames ()

Return an iterator of the signature names supported by the generator.

Returns
  • an iterator containing recognised names.

public void reset ()

reset the generator

public void setHolder (AttributeCertificateHolder holder)

Set the Holder of this Attribute Certificate

public void setIssuer (AttributeCertificateIssuer issuer)

Set the issuer

public void setIssuerUniqueId (boolean[] iui)

public void setNotAfter (Date date)

public void setNotBefore (Date date)

public void setSerialNumber (BigInteger serialNumber)

set the serial number for the certificate.

public void setSignatureAlgorithm (String signatureAlgorithm)

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

Parameters
signatureAlgorithm string representation of the algorithm name.