public class X509V2AttributeCertificateGenerator extends Object
Constructor and Description |
---|
X509V2AttributeCertificateGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(X509Attribute attribute)
Deprecated.
add an attribute
|
void |
addExtension(String oid,
boolean critical,
ASN1Encodable value)
Deprecated.
add a given extension field for the standard extensions tag
|
void |
addExtension(String oid,
boolean critical,
byte[] value)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
use generate()
|
X509AttributeCertificate |
generateCertificate(PrivateKey key,
String provider,
SecureRandom random)
Deprecated.
use generate()
|
Iterator |
getSignatureAlgNames()
Deprecated.
Return an iterator of the signature names supported by the generator.
|
void |
reset()
Deprecated.
reset the generator
|
void |
setHolder(AttributeCertificateHolder holder)
Deprecated.
Set the Holder of this Attribute Certificate
|
void |
setIssuer(AttributeCertificateIssuer issuer)
Deprecated.
Set the issuer
|
void |
setIssuerUniqueId(boolean[] iui)
Deprecated.
|
void |
setNotAfter(Date date)
Deprecated.
|
void |
setNotBefore(Date date)
Deprecated.
|
void |
setSerialNumber(BigInteger serialNumber)
Deprecated.
set the serial number for the certificate.
|
void |
setSignatureAlgorithm(String signatureAlgorithm)
Deprecated.
Set the signature algorithm.
|
public X509V2AttributeCertificateGenerator()
public void reset()
public void setHolder(AttributeCertificateHolder holder)
public void setIssuer(AttributeCertificateIssuer issuer)
public void setSerialNumber(BigInteger serialNumber)
public void setNotBefore(Date date)
public void setNotAfter(Date date)
public void setSignatureAlgorithm(String signatureAlgorithm)
signatureAlgorithm
- string representation of the algorithm name.public void addAttribute(X509Attribute attribute)
public void setIssuerUniqueId(boolean[] iui)
public void addExtension(String oid, boolean critical, ASN1Encodable value) throws IOException
IOException
public void addExtension(String oid, boolean critical, byte[] value)
public X509AttributeCertificate generateCertificate(PrivateKey key, String provider) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
public X509AttributeCertificate generateCertificate(PrivateKey key, String provider, SecureRandom random) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
public X509AttributeCertificate generate(PrivateKey key, String provider) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, SignatureException, InvalidKeyException, NoSuchAlgorithmException
public X509AttributeCertificate generate(PrivateKey key, String provider, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException
public Iterator getSignatureAlgNames()
Copyright © 2015. All rights reserved.