org.bouncycastle.x509
public class X509V2AttributeCertificateGenerator extends Object
Constructor Summary | |
---|---|
X509V2AttributeCertificateGenerator() |
Method Summary | |
---|---|
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)
generate an X509 certificate, based on the current issuer and subject,
using the passed in provider for the signing. |
X509AttributeCertificate | generateCertificate(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. |
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. |
Throws: IOException
Deprecated: use generate()
generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing.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.Returns: an iterator containing recognised names.
Parameters: signatureAlgorithm string representation of the algorithm name.