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
SetgetCriticalExtensionOIDs()
byte[]getEncoded()
byte[]getExtensionValue(String oid)
PrincipalgetIssuerDN()
X500PrincipalgetIssuerX500Principal()
DategetNextUpdate()
SetgetNonCriticalExtensionOIDs()
X509CRLEntrygetRevokedCertificate(BigInteger serialNumber)
SetgetRevokedCertificates()
StringgetSigAlgName()
StringgetSigAlgOID()
byte[]getSigAlgParams()
byte[]getSignature()
byte[]getTBSCertList()
DategetThisUpdate()
intgetVersion()
booleanhasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!
booleanisRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
StringtoString()
Returns a string representation of this CRL.
voidverify(PublicKey key)
voidverify(PublicKey key, String sigProvider)

Constructor Detail

X509CRLObject

public X509CRLObject(CertificateList c)

Method Detail

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()

getEncoded

public byte[] getEncoded()

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()

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)

verify

public void verify(PublicKey key, String sigProvider)