Package org.bouncycastle.x509
Class X509V2CRLGenerator
java.lang.Object
org.bouncycastle.x509.X509V2CRLGenerator
Deprecated.
use org.bouncycastle.cert.X509v2CRLBuilder.
class to produce an X.509 Version 2 CRL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Add the CRLEntry objects contained in a previous CRL.void
addCRLEntry
(BigInteger userCertificate, Date revocationDate, int reason) Deprecated.Reason being as indicated by CRLReason, i.e.void
addCRLEntry
(BigInteger userCertificate, Date revocationDate, int reason, Date invalidityDate) Deprecated.Add a CRL entry with an Invalidity Date extension as well as a CRLReason extension.void
addCRLEntry
(BigInteger userCertificate, Date revocationDate, X509Extensions extensions) Deprecated.Add a CRL entry with extensions.void
addExtension
(String oid, boolean critical, byte[] value) Deprecated.add a given extension field for the standard extensions tag (tag 0)void
addExtension
(String oid, boolean critical, ASN1Encodable value) Deprecated.add a given extension field for the standard extensions tag (tag 0)void
addExtension
(ASN1ObjectIdentifier oid, boolean critical, byte[] value) Deprecated.add a given extension field for the standard extensions tag (tag 0)void
addExtension
(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value) Deprecated.add a given extension field for the standard extensions tag (tag 0)generate
(PrivateKey key) Deprecated.generate an X509 CRL, based on the current issuer and subject using the default provider.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.generate
(PrivateKey key, String provider, SecureRandom random) Deprecated.generate an X509 CRL, based on the current issuer and subject, using the passed in provider for the signing.generate
(PrivateKey key, SecureRandom random) Deprecated.generate an X509 CRL, based on the current issuer and subject using the default provider and an user defined SecureRandom object as source of randomness.Deprecated.use generate(key, "BC")generateX509CRL
(PrivateKey key, String provider) Deprecated.use generate()generateX509CRL
(PrivateKey key, String provider, SecureRandom random) Deprecated.use generate()generateX509CRL
(PrivateKey key, SecureRandom random) Deprecated.use generate(key, random, "BC")Deprecated.Return an iterator of the signature names supported by the generator.void
reset()
Deprecated.reset the generatorvoid
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
setNextUpdate
(Date date) Deprecated.void
setSignatureAlgorithm
(String signatureAlgorithm) Deprecated.Set the signature algorithm.void
setThisUpdate
(Date date) Deprecated.
-
Constructor Details
-
X509V2CRLGenerator
public X509V2CRLGenerator()Deprecated.
-
-
Method Details
-
reset
public void reset()Deprecated.reset the generator -
setIssuerDN
Deprecated.Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. -
setIssuerDN
Deprecated.Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. -
setThisUpdate
Deprecated. -
setNextUpdate
Deprecated. -
addCRLEntry
Deprecated.Reason being as indicated by CRLReason, i.e. CRLReason.keyCompromise or 0 if CRLReason is not to be used -
addCRLEntry
public void addCRLEntry(BigInteger userCertificate, Date revocationDate, int reason, Date invalidityDate) Deprecated.Add a CRL entry with an Invalidity Date extension as well as a CRLReason extension. Reason being as indicated by CRLReason, i.e. CRLReason.keyCompromise or 0 if CRLReason is not to be used -
addCRLEntry
Deprecated.Add a CRL entry with extensions. -
addCRL
Deprecated.Add the CRLEntry objects contained in a previous CRL.- Parameters:
other
- the X509CRL to source the other entries from.- Throws:
CRLException
-
setSignatureAlgorithm
Deprecated.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.
-
addExtension
Deprecated.add a given extension field for the standard extensions tag (tag 0) -
addExtension
Deprecated.add a given extension field for the standard extensions tag (tag 0) -
addExtension
Deprecated.add a given extension field for the standard extensions tag (tag 0) -
addExtension
Deprecated.add a given extension field for the standard extensions tag (tag 0) -
generateX509CRL
public X509CRL generateX509CRL(PrivateKey key) throws SecurityException, SignatureException, InvalidKeyException Deprecated.use generate(key, "BC")generate an X509 CRL, based on the current issuer and subject using the default provider "BC". -
generateX509CRL
public X509CRL generateX509CRL(PrivateKey key, SecureRandom random) throws SecurityException, SignatureException, InvalidKeyException Deprecated.use generate(key, random, "BC")generate an X509 CRL, based on the current issuer and subject using the default provider "BC" and an user defined SecureRandom object as source of randomness. -
generateX509CRL
public X509CRL generateX509CRL(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. -
generateX509CRL
public X509CRL generateX509CRL(PrivateKey key, String provider, SecureRandom random) throws NoSuchProviderException, SecurityException, SignatureException, InvalidKeyException Deprecated.use generate()generate an X509 CRL, based on the current issuer and subject, using the passed in provider for the signing. -
generate
public X509CRL generate(PrivateKey key) throws CRLException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException Deprecated.generate an X509 CRL, 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
public X509CRL generate(PrivateKey key, SecureRandom random) throws CRLException, IllegalStateException, NoSuchAlgorithmException, SignatureException, InvalidKeyException Deprecated.generate an X509 CRL, based on the current issuer and subject using the default provider and an user defined SecureRandom object as source of randomness.Note: this differs from the deprecated method in that the default provider is used - not "BC".
-
generate
public X509CRL generate(PrivateKey key, String provider) throws CRLException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException Deprecated.generate an X509 certificate, based on the current issuer and subject using the passed in provider for the signing. -
generate
public X509CRL generate(PrivateKey key, String provider, SecureRandom random) throws CRLException, IllegalStateException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException, InvalidKeyException Deprecated.generate an X509 CRL, based on the current issuer and subject, using the passed in provider for the signing. -
getSignatureAlgNames
Deprecated.Return an iterator of the signature names supported by the generator.- Returns:
- an iterator containing recognised names.
-