org.bouncycastle.x509
public class X509V1CertificateGenerator extends Object
Constructor Summary | |
---|---|
X509V1CertificateGenerator() |
Method Summary | |
---|---|
X509Certificate | generate(PrivateKey key)
generate an X509 certificate, based on the current issuer and subject
using the default provider.
|
X509Certificate | generate(PrivateKey key, SecureRandom random)
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)
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)
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)
generate an X509 certificate, based on the current issuer and subject
using the default provider "BC". |
X509Certificate | generateX509Certificate(PrivateKey key, SecureRandom random)
generate an X509 certificate, based on the current issuer and subject
using the default provider "BC" and the passed in source of randomness |
X509Certificate | generateX509Certificate(PrivateKey key, String provider)
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, 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 passed in source
of randomness (if required). |
Iterator | getSignatureAlgNames()
Return an iterator of the signature names supported by the generator.
|
void | reset()
reset the generator |
void | setIssuerDN(X500Principal issuer)
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
certificate. |
void | setIssuerDN(X509Name issuer)
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
certificate. |
void | setNotAfter(Date date) |
void | setNotBefore(Date date) |
void | setPublicKey(PublicKey key) |
void | setSerialNumber(BigInteger serialNumber)
set the serial number for the certificate. |
void | setSignatureAlgorithm(String signatureAlgorithm)
Set the signature algorithm. |
void | setSubjectDN(X500Principal subject)
Set the subject distinguished name. |
void | setSubjectDN(X509Name subject)
Set the subject distinguished name. |
Note: this differs from the deprecated method in that the default provider is used - not "BC".
Note: this differs from the deprecated method in that the default provider is used - not "BC".
Deprecated: use generate(key, "BC")
generate an X509 certificate, based on the current issuer and subject using the default provider "BC".Deprecated: use generate(key, random, "BC")
generate an X509 certificate, based on the current issuer and subject using the default provider "BC" and the passed in source of randomnessDeprecated: use generate()
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).Deprecated: use generate()
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).Returns: an iterator containing recognised names.
Parameters: signatureAlgorithm string representation of the algorithm name.