org.bouncycastle.jce.provider

Class X509CRLEntryObject


public class X509CRLEntryObject
extends X509CRLEntry

The following extensions are listed in RFC 2459 as relevant to CRL Entries ReasonCode Hode Instruction Code Invalidity Date Certificate Issuer (critical)

Constructor Summary

X509CRLEntryObject(TBSCertList.CRLEntry c)
X509CRLEntryObject(TBSCertList.CRLEntry c, boolean isIndirect, X500Principal previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs.

Method Summary

X500Principal
getCertificateIssuer()
Set
getCriticalExtensionOIDs()
byte[]
getEncoded()
byte[]
getExtensionValue(String oid)
Set
getNonCriticalExtensionOIDs()
Date
getRevocationDate()
BigInteger
getSerialNumber()
boolean
hasExtensions()
boolean
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!
int
hashCode()
Cache the hashCode value - calculating it with the standard method.
String
toString()

Constructor Details

X509CRLEntryObject

public X509CRLEntryObject(TBSCertList.CRLEntry c)

X509CRLEntryObject

public X509CRLEntryObject(TBSCertList.CRLEntry c,
                          boolean isIndirect,
                          X500Principal previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs. If isIndirect is false getCertificateIssuer() will always return null, previousCertificateIssuer is ignored. If this isIndirect is specified and this CRLEntry has no certificate issuer CRL entry extension previousCertificateIssuer is returned by getCertificateIssuer().
Parameters:
c - TBSCertList.CRLEntry object.
isIndirect - true if the corresponding CRL is a indirect CRL.
previousCertificateIssuer - Certificate issuer of the previous CRLEntry.

Method Details

getCertificateIssuer

public X500Principal getCertificateIssuer()

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()

getEncoded

public byte[] getEncoded()
            throws CRLException

getExtensionValue

public byte[] getExtensionValue(String oid)

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()

getRevocationDate

public Date getRevocationDate()

getSerialNumber

public BigInteger getSerialNumber()

hasExtensions

public boolean hasExtensions()

hasUnsupportedCriticalExtension

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

hashCode

public int hashCode()
Cache the hashCode value - calculating it with the standard method.
Returns:
calculated hashCode.

toString

public String toString()