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 Hashtableprivate SimpleDateFormatprivate Hashtableprivate Vectorprivate AlgorithmIdentifierprivate Stringprivate DERObjectIdentifierprivate V2TBSCertListGeneratorprivate SimpleTimeZone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCRLEntry(BigInteger userCertificate, Date revocationDate, int reason) Reason being as indicated by ReasonFlags, i.e.voidaddExtension(String OID, boolean critical, byte[] value) add a given extension field for the standard extensions tag (tag 0)voidaddExtension(String OID, boolean critical, DEREncodable value) add a given extension field for the standard extensions tag (tag 3)voidaddExtension(DERObjectIdentifier OID, boolean critical, byte[] value) add a given extension field for the standard extensions tag (tag 0)voidaddExtension(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.voidreset()reset the generatorvoidsetIssuerDN(X509Name issuer) Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the certificate.voidsetNextUpdate(Date date) voidsetSignatureAlgorithm(String signatureAlgorithm) voidsetThisUpdate(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.
-