Bouncy Castle Cryptography 1.11 API Specification: Class X509CRLObject
org.bouncycastle.jce.provider
Class X509CRLObject
java.lang.Object
|
+--java.security.cert.CRL
|
+--java.security.cert.X509CRL
|
+--org.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)
Methods inherited from class java.security.cert.X509CRL
equals, hashCode
Methods inherited from class java.security.cert.CRL
getType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
X509CRLObject
public X509CRLObject (CertificateList c)
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension ()
Will return true if any extensions are present and marked
as critical as we currently dont handle any extensions!
Overrides: hasUnsupportedCriticalExtension
in class java.security.cert.X509CRL
getCriticalExtensionOIDs
public java.util.Set getCriticalExtensionOIDs ()
Overrides: getCriticalExtensionOIDs
in class java.security.cert.X509CRL
getNonCriticalExtensionOIDs
public java.util.Set getNonCriticalExtensionOIDs ()
Overrides: getNonCriticalExtensionOIDs
in class java.security.cert.X509CRL
getExtensionValue
public byte[] getExtensionValue (java.lang.String oid)
Overrides: getExtensionValue
in class java.security.cert.X509CRL
getEncoded
public byte[] getEncoded ()
throws java.security.cert.CRLException
Overrides: getEncoded
in class java.security.cert.X509CRL
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
Overrides: verify
in class java.security.cert.X509CRL
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
Overrides: verify
in class java.security.cert.X509CRL
getVersion
public int getVersion ()
Overrides: getVersion
in class java.security.cert.X509CRL
getIssuerDN
public java.security.Principal getIssuerDN ()
Overrides: getIssuerDN
in class java.security.cert.X509CRL
getThisUpdate
public java.util.Date getThisUpdate ()
Overrides: getThisUpdate
in class java.security.cert.X509CRL
getNextUpdate
public java.util.Date getNextUpdate ()
Overrides: getNextUpdate
in class java.security.cert.X509CRL
getRevokedCertificate
public java.security.cert.X509CRLEntry getRevokedCertificate (java.math.BigInteger serialNumber)
Overrides: getRevokedCertificate
in class java.security.cert.X509CRL
getRevokedCertificates
public java.util.Set getRevokedCertificates ()
Overrides: getRevokedCertificates
in class java.security.cert.X509CRL
getTBSCertList
public byte[] getTBSCertList ()
throws java.security.cert.CRLException
Overrides: getTBSCertList
in class java.security.cert.X509CRL
getSignature
public byte[] getSignature ()
Overrides: getSignature
in class java.security.cert.X509CRL
getSigAlgName
public java.lang.String getSigAlgName ()
Overrides: getSigAlgName
in class java.security.cert.X509CRL
getSigAlgOID
public java.lang.String getSigAlgOID ()
Overrides: getSigAlgOID
in class java.security.cert.X509CRL
getSigAlgParams
public byte[] getSigAlgParams ()
Overrides: getSigAlgParams
in class java.security.cert.X509CRL
toString
public java.lang.String toString ()
Returns a string representation of this CRL.
Overrides: toString
in class java.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.
Overrides: isRevoked
in class java.security.cert.CRL
Parameters: cert
- the certificate to check for.Returns: true if the given certificate is on this CRL,
false otherwise.