Package org.gudy.bouncycastle.jce
Class X509V2CRLGenerator
java.lang.Object
org.gudy.bouncycastle.jce.X509V2CRLGenerator
class to produce an X.509 Version 2 CRL.
Note: This class may be subject to change.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Hashtable
private SimpleDateFormat
private Hashtable
private Vector
private AlgorithmIdentifier
private String
private DERObjectIdentifier
private V2TBSCertListGenerator
private SimpleTimeZone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCRLEntry
(BigInteger userCertificate, Date revocationDate, int reason) Reason being as indicated by ReasonFlags, i.e.void
addExtension
(String OID, boolean critical, byte[] value) add a given extension field for the standard extensions tag (tag 0)void
addExtension
(String OID, boolean critical, DEREncodable value) add a given extension field for the standard extensions tag (tag 3)void
addExtension
(DERObjectIdentifier OID, boolean critical, byte[] value) add a given extension field for the standard extensions tag (tag 0)void
addExtension
(DERObjectIdentifier OID, boolean critical, DEREncodable value) add a given extension field for the standard extensions tag (tag 0)generate an X509 CRL, based on the current issuer and subject using the default provider "BC".generateX509CRL
(PrivateKey key, String provider) generate an X509 certificate, based on the current issuer and subject using the passed in provider for the signing.generateX509CRL
(PrivateKey key, String provider, SecureRandom random) generate an X509 CRL, based on the current issuer and subject, using the passed in provider for the signing.generateX509CRL
(PrivateKey key, SecureRandom random) 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.void
reset()
reset the generatorvoid
setIssuerDN
(X509Name issuer) Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate.void
setNextUpdate
(Date date) void
setSignatureAlgorithm
(String signatureAlgorithm) void
setThisUpdate
(Date date)
-
Field Details
-
dateF
-
tz
-
tbsGen
-
sigOID
-
sigAlgId
-
signatureAlgorithm
-
extensions
-
extOrdering
-
algorithms
-
-
Constructor Details
-
X509V2CRLGenerator
public X509V2CRLGenerator()
-
-
Method Details
-
reset
public void reset()reset the generator -
setIssuerDN
Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate. -
setThisUpdate
-
setNextUpdate
-
addCRLEntry
Reason being as indicated by ReasonFlags, i.e. ReasonFlags.KEY_COMPROMISE or 0 if ReasonFlags are not to be used -
setSignatureAlgorithm
-
addExtension
add a given extension field for the standard extensions tag (tag 3) -
addExtension
add a given extension field for the standard extensions tag (tag 0) -
addExtension
add a given extension field for the standard extensions tag (tag 0) -
addExtension
add a given extension field for the standard extensions tag (tag 0) -
generateX509CRL
public X509CRL generateX509CRL(PrivateKey key) throws SecurityException, SignatureException, InvalidKeyException 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 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 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 generate an X509 CRL, based on the current issuer and subject, using the passed in provider for the signing.
-