public class

X509v2AttributeCertificateBuilder

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.X509v2AttributeCertificateBuilder

Class Overview

class to produce an X.509 Version 2 AttributeCertificate.

Summary

Public Constructors
X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter)
Public Methods
X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues)
Add an attribute with multiple values to the certification request we are building.
X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
Add an attribute to the certification request we are building.
X509v2AttributeCertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value)
Add a given extension field for the standard extensions tag
X509AttributeCertificateHolder build(ContentSigner signer)
Generate an X509 certificate, based on the current issuer and subject using the passed in signer.
void setIssuerUniqueId(boolean[] iui)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public X509v2AttributeCertificateBuilder (AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter)

Public Methods

public X509v2AttributeCertificateBuilder addAttribute (ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues)

Add an attribute with multiple values to the certification request we are building.

Parameters
attrType the OID giving the type of the attribute.
attrValues an array of ASN.1 structures that form the value of the attribute.
Returns
  • this builder object.

public X509v2AttributeCertificateBuilder addAttribute (ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)

Add an attribute to the certification request we are building.

Parameters
attrType the OID giving the type of the attribute.
attrValue the ASN.1 structure that forms the value of the attribute.
Returns
  • this builder object.

public X509v2AttributeCertificateBuilder addExtension (ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value)

Add a given extension field for the standard extensions tag

Parameters
oid the OID defining the extension type.
isCritical true if the extension is critical, false otherwise.
value the ASN.1 structure that forms the extension's value.
Returns
  • this builder object.

public X509AttributeCertificateHolder build (ContentSigner signer)

Generate an X509 certificate, based on the current issuer and subject using the passed in signer.

Parameters
signer the content signer to be used to generate the signature validating the certificate.
Returns
  • a holder containing the resulting signed certificate.

public void setIssuerUniqueId (boolean[] iui)