public class X509V1CertificateGenerator extends Object
Constructor and Description |
---|
X509V1CertificateGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
X509Certificate |
generate(PrivateKey key)
Deprecated.
generate an X509 certificate, based on the current issuer and subject
using the default provider.
|
X509Certificate |
generate(PrivateKey key,
SecureRandom random)
Deprecated.
generate an X509 certificate, based on the current issuer and subject
using the default provider and the passed in source of randomness
Note: this differs from the deprecated method in that the default provider is
used - not "BC".
|
X509Certificate |
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, and the passed in source
of randomness (if required).
|
X509Certificate |
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 passed in source
of randomness (if required).
|
X509Certificate |
generateX509Certificate(PrivateKey key)
Deprecated.
use generate(key, "BC")
|
X509Certificate |
generateX509Certificate(PrivateKey key,
SecureRandom random)
Deprecated.
use generate(key, random, "BC")
|
X509Certificate |
generateX509Certificate(PrivateKey key,
String provider)
Deprecated.
use generate()
|
X509Certificate |
generateX509Certificate(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 |
setIssuerDN(X500Principal issuer)
Deprecated.
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
certificate.
|
void |
setIssuerDN(X509Name issuer)
Deprecated.
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
certificate.
|
void |
setNotAfter(Date date)
Deprecated.
|
void |
setNotBefore(Date date)
Deprecated.
|
void |
setPublicKey(PublicKey key)
Deprecated.
|
void |
setSerialNumber(BigInteger serialNumber)
Deprecated.
set the serial number for the certificate.
|
void |
setSignatureAlgorithm(String signatureAlgorithm)
Deprecated.
Set the signature algorithm.
|
void |
setSubjectDN(X500Principal subject)
Deprecated.
Set the subject distinguished name.
|
void |
setSubjectDN(X509Name subject)
Deprecated.
Set the subject distinguished name.
|
public void reset()
public void setSerialNumber(BigInteger serialNumber)
public void setIssuerDN(X500Principal issuer)
public void setIssuerDN(X509Name issuer)
public void setNotBefore(Date date)
public void setNotAfter(Date date)
public void setSubjectDN(X500Principal subject)
public void setSubjectDN(X509Name subject)
public void setPublicKey(PublicKey key)
public void setSignatureAlgorithm(String signatureAlgorithm)
signatureAlgorithm
- string representation of the algorithm name.public X509Certificate generateX509Certificate(PrivateKey key) throws SecurityException, SignatureException, InvalidKeyException
public X509Certificate generateX509Certificate(PrivateKey key, SecureRandom random) throws SecurityException, SignatureException, InvalidKeyException
public X509Certificate generateX509Certificate(PrivateKey key, String provider) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
public X509Certificate generateX509Certificate(PrivateKey key, String provider, SecureRandom random) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
public X509Certificate generate(PrivateKey key) throws CertificateEncodingException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException
Note: this differs from the deprecated method in that the default provider is used - not "BC".
public X509Certificate generate(PrivateKey key, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException
Note: this differs from the deprecated method in that the default provider is used - not "BC".
public X509Certificate generate(PrivateKey key, String provider) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException
public X509Certificate generate(PrivateKey key, String provider, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException
public Iterator getSignatureAlgNames()
Copyright © 2015. All rights reserved.