org.bouncycastle.jce.provider

Class X509CRLObject


public class X509CRLObject
extends 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)

Constructor Summary

X509CRLObject(CertificateList c)

Method Summary

Set
getCriticalExtensionOIDs()
byte[]
getEncoded()
byte[]
getExtensionValue(String oid)
Principal
getIssuerDN()
X500Principal
getIssuerX500Principal()
Date
getNextUpdate()
Set
getNonCriticalExtensionOIDs()
X509CRLEntry
getRevokedCertificate(BigInteger serialNumber)
Set
getRevokedCertificates()
String
getSigAlgName()
String
getSigAlgOID()
byte[]
getSigAlgParams()
byte[]
getSignature()
byte[]
getTBSCertList()
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(Certificate cert)
Checks whether the given certificate is on this CRL.
String
toString()
Returns a string representation of this CRL.
void
verify(PublicKey key)
void
verify(PublicKey key, String sigProvider)

Constructor Details

X509CRLObject

public X509CRLObject(CertificateList c)

Method Details

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()

getEncoded

public byte[] getEncoded()
            throws CRLException

getExtensionValue

public byte[] getExtensionValue(String oid)

getIssuerDN

public Principal getIssuerDN()

getIssuerX500Principal

public X500Principal getIssuerX500Principal()

getNextUpdate

public Date getNextUpdate()

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()

getRevokedCertificate

public X509CRLEntry getRevokedCertificate(BigInteger serialNumber)

getRevokedCertificates

public Set getRevokedCertificates()

getSigAlgName

public String getSigAlgName()

getSigAlgOID

public String getSigAlgOID()

getSigAlgParams

public byte[] getSigAlgParams()

getSignature

public byte[] getSignature()

getTBSCertList

public byte[] getTBSCertList()
            throws CRLException

getThisUpdate

public Date getThisUpdate()

getVersion

public int getVersion()

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!

isRevoked

public boolean isRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
Parameters:
cert - the certificate to check for.
Returns:
true if the given certificate is on this CRL, false otherwise.

toString

public String toString()
Returns a string representation of this CRL.
Returns:
a string representation of this CRL.

verify

public void verify(PublicKey key)
            throws CRLException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException

verify

public void verify(PublicKey key,
                   String sigProvider)
            throws CRLException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException