| Modifier and Type | Field and Description |
|---|---|
| private V2AttributeCertificateInfoGenerator | |
| private ExtensionsGenerator |
| Access | Constructor and Description |
|---|---|
| public | X509v2AttributeCertificateBuilder(AttributeCertificateHolder
holder certificate details holder, AttributeCertificateIssuer issuer of this attribute certificate. issuer, BigInteger serial number of this attribute certificate. serialNumber, Date the date before which the certificate is not valid. notBefore, Date the date after which the certificate is not valid. notAfter)Base constructor. |
| public | X509v2AttributeCertificateBuilder(AttributeCertificateHolder
holder certificate details holder, AttributeCertificateIssuer issuer of this attribute certificate. issuer, BigInteger serial number of this attribute certificate. serialNumber, Date the date before which the certificate is not valid. notBefore, Date the date after which the certificate is not valid. notAfter, Locale locale to be used for date interpretation. dateLocale)Base constructor with locale for interpreting dates. |
| public | X509v2AttributeCertificateBuilder(X509AttributeCertificateHolder
template certificate to base the new one on. template)Create a builder for a version 2 attribute certificate, initialised with another certificate. |
| Modifier and Type | Method and Description |
|---|---|
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable the ASN.1 structure that forms the value of the attribute. attrValue)Add an attribute to the certification request we are building. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable[] an array of ASN.1 structures that form the value of the attribute. attrValues)Add an attribute with multiple values to the certification request we are building. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, ASN1Encodable the ASN.1 structure that forms the extension's value. value)Add a given extension field for the standard extensions tag made up of the passed in parameters. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, byte[] a byte array representing the encoding of the extension value. encodedValue)Add a given extension field for the standard extensions using a byte encoding of the extension value. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the full extension value. extension)Add a given extension field for the standard extensions. |
| public X509AttributeCertificateHolder | Returns: a holder containing the resulting signed certificate.the content signer to be used to generate the signature validating the certificate. signer)Generate an X509 certificate, based on the current issuer and subject using the passed in signer. |
| private Extension | |
| public Extension | Returns: true if a matching extension is present, false otherwise.the OID for the extension we want to fetch. oid)Return the current value of the extension for OID. |
| public boolean | Returns: the Extension, or null if it is not present.the OID for the extension of interest. oid)Return if the extension indicated by OID is present. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID of the extension to be removed. oid)Remove the extension indicated by OID. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, ASN1Encodable the ASN.1 structure that forms the extension's value. value)Replace the extension field for the passed in extension's extension ID with a new version. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the full extension value. extension)Replace the extension field for the passed in extension's extension ID with a new version. |
| public X509v2AttributeCertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, byte[] a byte array representing the encoding of the extension value. encodedValue)Replace a given extension field for the standard extensions tag (tag 3) with the passed in byte encoded extension value. |
| public void |
| acInfoGen | back to summary |
|---|---|
| private V2AttributeCertificateInfoGenerator acInfoGen | |
| extGenerator | back to summary |
|---|---|
| private ExtensionsGenerator extGenerator | |
| X509v2AttributeCertificateBuilder | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter) Base constructor.
| |
| X509v2AttributeCertificateBuilder | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder(AttributeCertificateHolder holder, AttributeCertificateIssuer issuer, BigInteger serialNumber, Date notBefore, Date notAfter, Locale dateLocale) Base constructor with locale for interpreting dates. You may need to use this constructor if the default locale doesn't use a Gregorian calender so that the GeneralizedTime produced is compatible with other ASN.1 implementations.
| |
| X509v2AttributeCertificateBuilder | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder(X509AttributeCertificateHolder template) Create a builder for a version 2 attribute certificate, initialised with another certificate.
| |
| addAttribute | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue) Add an attribute to the certification request we are building.
| |
| addAttribute | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues) Add an attribute with multiple values to the certification request we are building.
| |
| addExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value) throws CertIOException Add a given extension field for the standard extensions tag made up of the passed in parameters.
| |
| addExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] encodedValue) throws CertIOException Add a given extension field for the standard extensions using a byte encoding of the extension value.
| |
| addExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder addExtension(Extension extension) throws CertIOException Add a given extension field for the standard extensions.
| |
| build | back to summary |
|---|---|
| public X509AttributeCertificateHolder build(ContentSigner signer) Generate an X509 certificate, based on the current issuer and subject using the passed in signer.
| |
| doGetExtension | back to summary |
|---|---|
| private Extension doGetExtension(ASN1ObjectIdentifier oid) | |
| getExtension | back to summary |
|---|---|
| public Extension getExtension(ASN1ObjectIdentifier oid) Return the current value of the extension for OID.
| |
| hasExtension | back to summary |
|---|---|
| public boolean hasExtension(ASN1ObjectIdentifier oid) Return if the extension indicated by OID is present.
| |
| removeExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder removeExtension(ASN1ObjectIdentifier oid) Remove the extension indicated by OID.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder replaceExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value) throws CertIOException Replace the extension field for the passed in extension's extension ID with a new version.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder replaceExtension(Extension extension) throws CertIOException Replace the extension field for the passed in extension's extension ID with a new version.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v2AttributeCertificateBuilder replaceExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] encodedValue) throws CertIOException Replace a given extension field for the standard extensions tag (tag 3) with the passed in byte encoded extension value.
| |
| setIssuerUniqueId | back to summary |
|---|---|
| public void setIssuerUniqueId(boolean[] iui) | |