| java.lang.Object org.bouncycastle.x509.X509V2AttributeCertificateGenerator
X509V2AttributeCertificateGenerator | public class X509V2AttributeCertificateGenerator (Code) | | class to produce an X.509 Version 2 AttributeCertificate.
|
Method Summary | |
public void | addAttribute(X509Attribute attribute) | public void | addExtension(String oid, boolean critical, ASN1Encodable value) | 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) generate an X509 certificate, based on the current issuer and subject,
using the passed in provider for the signing. | public 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. | public Iterator | getSignatureAlgNames() Return an iterator of the signature names supported by the generator. | public void | reset() | public void | setHolder(AttributeCertificateHolder holder) | public void | setIssuer(AttributeCertificateIssuer 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. |
X509V2AttributeCertificateGenerator | public X509V2AttributeCertificateGenerator()(Code) | | |
addExtension | public void addExtension(String oid, boolean critical, byte[] value)(Code) | | add a given extension field for the standard extensions tag
The value parameter becomes the contents of the octet string associated
with the extension.
|
generate | public X509AttributeCertificate generate(PrivateKey key, String provider, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException(Code) | | 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.
|
getSignatureAlgNames | public Iterator getSignatureAlgNames()(Code) | | Return an iterator of the signature names supported by the generator.
an iterator containing recognised names. |
reset | public void reset()(Code) | | reset the generator
|
setIssuerUniqueId | public void setIssuerUniqueId(boolean[] iui)(Code) | | |
setNotAfter | public void setNotAfter(Date date)(Code) | | |
setNotBefore | public void setNotBefore(Date date)(Code) | | |
setSerialNumber | public void setSerialNumber(BigInteger serialNumber)(Code) | | set the serial number for the certificate.
|
setSignatureAlgorithm | public void setSignatureAlgorithm(String signatureAlgorithm)(Code) | | 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. |
|
|