Class X509CRLObject
- java.lang.Object
-
- java.security.cert.CRL
-
- java.security.cert.X509CRL
-
- org.gudy.bouncycastle.jce.provider.X509CRLObject
-
- All Implemented Interfaces:
java.security.cert.X509Extension
public class X509CRLObject extends java.security.cert.X509CRL
The following extensions are listed in RFC 2459 as relevant to CRLs Authority Key Identifier Issuer Alternative Name CRL Number Delta CRL Indicator (critical) Issuing Distribution Point (critical)
-
-
Field Summary
Fields Modifier and Type Field Description private CertificateList
c
-
Constructor Summary
Constructors Constructor Description X509CRLObject(CertificateList c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set
getCriticalExtensionOIDs()
byte[]
getEncoded()
private java.util.Set
getExtensionOIDs(boolean critical)
byte[]
getExtensionValue(java.lang.String oid)
java.security.Principal
getIssuerDN()
javax.security.auth.x500.X500Principal
getIssuerX500Principal()
java.util.Date
getNextUpdate()
java.util.Set
getNonCriticalExtensionOIDs()
java.security.cert.X509CRLEntry
getRevokedCertificate(java.math.BigInteger serialNumber)
java.util.Set
getRevokedCertificates()
java.lang.String
getSigAlgName()
java.lang.String
getSigAlgOID()
byte[]
getSigAlgParams()
byte[]
getSignature()
byte[]
getTBSCertList()
java.util.Date
getThisUpdate()
int
getVersion()
boolean
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!boolean
isRevoked(java.security.cert.Certificate cert)
Checks whether the given certificate is on this CRL.java.lang.String
toString()
Returns a string representation of this CRL.void
verify(java.security.PublicKey key)
void
verify(java.security.PublicKey key, java.lang.String sigProvider)
-
-
-
Field Detail
-
c
private CertificateList c
-
-
Constructor Detail
-
X509CRLObject
public X509CRLObject(CertificateList c)
-
-
Method Detail
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!
-
getExtensionOIDs
private java.util.Set getExtensionOIDs(boolean critical)
-
getCriticalExtensionOIDs
public java.util.Set getCriticalExtensionOIDs()
-
getNonCriticalExtensionOIDs
public java.util.Set getNonCriticalExtensionOIDs()
-
getExtensionValue
public byte[] getExtensionValue(java.lang.String oid)
-
getEncoded
public byte[] getEncoded() throws java.security.cert.CRLException
- Specified by:
getEncoded
in classjava.security.cert.X509CRL
- Throws:
java.security.cert.CRLException
-
verify
public void verify(java.security.PublicKey key) throws java.security.cert.CRLException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
- Specified by:
verify
in classjava.security.cert.X509CRL
- Throws:
java.security.cert.CRLException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
verify
public void verify(java.security.PublicKey key, java.lang.String sigProvider) throws java.security.cert.CRLException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
- Specified by:
verify
in classjava.security.cert.X509CRL
- Throws:
java.security.cert.CRLException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
getVersion
public int getVersion()
- Specified by:
getVersion
in classjava.security.cert.X509CRL
-
getIssuerDN
public java.security.Principal getIssuerDN()
- Specified by:
getIssuerDN
in classjava.security.cert.X509CRL
-
getIssuerX500Principal
public javax.security.auth.x500.X500Principal getIssuerX500Principal()
- Overrides:
getIssuerX500Principal
in classjava.security.cert.X509CRL
-
getThisUpdate
public java.util.Date getThisUpdate()
- Specified by:
getThisUpdate
in classjava.security.cert.X509CRL
-
getNextUpdate
public java.util.Date getNextUpdate()
- Specified by:
getNextUpdate
in classjava.security.cert.X509CRL
-
getRevokedCertificate
public java.security.cert.X509CRLEntry getRevokedCertificate(java.math.BigInteger serialNumber)
- Specified by:
getRevokedCertificate
in classjava.security.cert.X509CRL
-
getRevokedCertificates
public java.util.Set getRevokedCertificates()
- Specified by:
getRevokedCertificates
in classjava.security.cert.X509CRL
-
getTBSCertList
public byte[] getTBSCertList() throws java.security.cert.CRLException
- Specified by:
getTBSCertList
in classjava.security.cert.X509CRL
- Throws:
java.security.cert.CRLException
-
getSignature
public byte[] getSignature()
- Specified by:
getSignature
in classjava.security.cert.X509CRL
-
getSigAlgName
public java.lang.String getSigAlgName()
- Specified by:
getSigAlgName
in classjava.security.cert.X509CRL
-
getSigAlgOID
public java.lang.String getSigAlgOID()
- Specified by:
getSigAlgOID
in classjava.security.cert.X509CRL
-
getSigAlgParams
public byte[] getSigAlgParams()
- Specified by:
getSigAlgParams
in classjava.security.cert.X509CRL
-
toString
public java.lang.String toString()
Returns a string representation of this CRL.- Specified by:
toString
in classjava.security.cert.CRL
- Returns:
- a string representation of this CRL.
-
isRevoked
public boolean isRevoked(java.security.cert.Certificate cert)
Checks whether the given certificate is on this CRL.- Specified by:
isRevoked
in classjava.security.cert.CRL
- Parameters:
cert
- the certificate to check for.- Returns:
- true if the given certificate is on this CRL, false otherwise.
-
-