public class X509v2AttributeCertificateBuilder extends Object
Constructor and Description |
---|
X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder,
AttributeCertificateIssuer issuer,
BigInteger serialNumber,
Date notBefore,
Date notAfter) |
Modifier and Type | Method and Description |
---|---|
X509v2AttributeCertificateBuilder |
addAttribute(ASN1ObjectIdentifier attrType,
ASN1Encodable attrValue)
Add an attribute to the certification request we are building.
|
X509v2AttributeCertificateBuilder |
addAttribute(ASN1ObjectIdentifier attrType,
ASN1Encodable[] attrValues)
Add an attribute with multiple values 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) |
public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter)
public X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
attrType
- the OID giving the type of the attribute.attrValue
- the ASN.1 structure that forms the value of the attribute.public X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues)
attrType
- the OID giving the type of the attribute.attrValues
- an array of ASN.1 structures that form the value of the attribute.public void setIssuerUniqueId(boolean[] iui)
public X509v2AttributeCertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value)
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.public X509AttributeCertificateHolder build(ContentSigner signer)
signer
- the content signer to be used to generate the signature validating the certificate.Copyright © 2015. All rights reserved.