Deprecated
use org.bouncycastle.cert.X509v1CertificateBuilder.
| Modifier and Type | Field and Description |
|---|---|
| private final JcaJceHelper | |
| private final CertificateFactory | |
| private AlgorithmIdentifier | |
| private String | |
| private ASN1ObjectIdentifier | |
| private V1TBSCertificateGenerator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public X509Certificate | generate(PrivateKey key)
generate an X509 certificate, based on the current issuer and subject using the default provider. |
| public 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". |
| public 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). |
| public 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). |
| private X509Certificate | |
| public X509Certificate | generateX509Certificate(PrivateKey key)
Deprecated
use generate(key, "BC")
generate an X509 certificate, based on the current issuer and subject using the default provider "BC". |
| public X509Certificate | generateX509Certificate(PrivateKey key, SecureRandom random)
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 randomness |
| public X509Certificate | generateX509Certificate(PrivateKey key, String provider)
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). |
| public X509Certificate | generateX509Certificate(PrivateKey key, String provider, SecureRandom random)
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). |
| public Iterator | Returns: an iterator containing recognised names.Return an iterator of the signature names supported by the generator. |
| public void | |
| public void | setIssuerDN(X500Principal issuer)
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. |
| public void | setIssuerDN(X509Name issuer)
References Deprecated
X509Name is deprecated or references (maybe indirectly) at least one deprecated element.
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setSignatureAlgorithm(String
string representation of the algorithm name. signatureAlgorithm)Set the signature algorithm. |
| public void | |
| public void | setSubjectDN(X509Name subject)
References Deprecated
X509Name is deprecated or references (maybe indirectly) at least one deprecated element.
Set the subject distinguished name. |
| bcHelper | back to summary |
|---|---|
| private final JcaJceHelper bcHelper | |
| certificateFactory | back to summary |
|---|---|
| private final CertificateFactory certificateFactory | |
| sigAlgId | back to summary |
|---|---|
| private AlgorithmIdentifier sigAlgId | |
| signatureAlgorithm | back to summary |
|---|---|
| private String signatureAlgorithm | |
| sigOID | back to summary |
|---|---|
| private ASN1ObjectIdentifier sigOID | |
| tbsGen | back to summary |
|---|---|
| private V1TBSCertificateGenerator tbsGen | |
| X509V1CertificateGenerator | back to summary |
|---|---|
| public X509V1CertificateGenerator() | |
| generate | back to summary |
|---|---|
| public X509Certificate generate(PrivateKey key) throws CertificateEncodingException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException generate an X509 certificate, based on the current issuer and subject using the default provider. Note this differs from the deprecated method in that the default provider is used - not "BC". | |
| generate | back to summary |
|---|---|
| public X509Certificate generate(PrivateKey key, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException 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". | |
| generate | back to summary |
|---|---|
| public X509Certificate generate(PrivateKey key, String provider) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException 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). | |
| generate | back to summary |
|---|---|
| public X509Certificate generate(PrivateKey key, String provider, SecureRandom random) throws CertificateEncodingException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException 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). | |
| generateJcaObject | back to summary |
|---|---|
| private X509Certificate generateJcaObject(TBSCertificate tbsCert, byte[] signature) throws CertificateEncodingException | |
| generateX509Certificate | back to summary |
|---|---|
| public X509Certificate generateX509Certificate(PrivateKey key) throws SecurityException, SignatureException, InvalidKeyException
Deprecated use generate(key, "BC") generate an X509 certificate, based on the current issuer and subject using the default provider "BC". | |
| generateX509Certificate | back to summary |
|---|---|
| public X509Certificate generateX509Certificate(PrivateKey key, SecureRandom random) throws SecurityException, SignatureException, InvalidKeyException
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 randomness | |
| generateX509Certificate | back to summary |
|---|---|
| public X509Certificate generateX509Certificate(PrivateKey key, String provider) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
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). | |
| generateX509Certificate | back to summary |
|---|---|
| public X509Certificate generateX509Certificate(PrivateKey key, String provider, SecureRandom random) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException
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). | |
| getSignatureAlgNames | back to summary |
|---|---|
| public Iterator Return an iterator of the signature names supported by the generator.
| |
| reset | back to summary |
|---|---|
| public void reset() reset the generator | |
| setIssuerDN | back to summary |
|---|---|
| public void setIssuerDN(X500Principal issuer) Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. | |
| setIssuerDN | back to summary |
|---|---|
| public void setIssuerDN(X509Name issuer)
References Deprecated
See corresponding docs for further information. Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. | |
| setNotAfter | back to summary |
|---|---|
| public void setNotAfter(Date date) | |
| setNotBefore | back to summary |
|---|---|
| public void setNotBefore(Date date) | |
| setPublicKey | back to summary |
|---|---|
| public void setPublicKey(PublicKey key) | |
| setSerialNumber | back to summary |
|---|---|
| public void setSerialNumber(BigInteger serialNumber) set the serial number for the certificate. | |
| setSignatureAlgorithm | back to summary |
|---|---|
| public void setSignatureAlgorithm(String signatureAlgorithm) Set the signature algorithm. This can be either a name or an OID, names are treated as case insensitive.
| |
| setSubjectDN | back to summary |
|---|---|
| public void setSubjectDN(X500Principal subject) Set the subject distinguished name. The subject describes the entity associated with the public key. | |
| setSubjectDN | back to summary |
|---|---|
| public void setSubjectDN(X509Name subject)
References Deprecated
See corresponding docs for further information. Set the subject distinguished name. The subject describes the entity associated with the public key. | |