Package org.bouncycastle.jce.provider
Class X509CRLEntryObject
- java.lang.Object
-
- java.security.cert.X509CRLEntry
-
- org.bouncycastle.jce.provider.X509CRLEntryObject
-
- All Implemented Interfaces:
X509Extension
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
Constructors Constructor Description X509CRLEntryObject(TBSCertList.CRLEntry c)
X509CRLEntryObject(TBSCertList.CRLEntry c, boolean isIndirect, X500Name previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
X500Principal
getCertificateIssuer()
Set
getCriticalExtensionOIDs()
byte[]
getEncoded()
byte[]
getExtensionValue(String oid)
Set
getNonCriticalExtensionOIDs()
Date
getRevocationDate()
BigInteger
getSerialNumber()
boolean
hasExtensions()
int
hashCode()
Cache the hashCode value - calculating it with the standard method.boolean
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently don't handle any extensions!String
toString()
-
Methods inherited from class java.security.cert.X509CRLEntry
getRevocationReason
-
-
-
-
Constructor Detail
-
X509CRLEntryObject
public X509CRLEntryObject(TBSCertList.CRLEntry c)
-
X509CRLEntryObject
public X509CRLEntryObject(TBSCertList.CRLEntry c, boolean isIndirect, X500Name previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs. IfisIndirect
isfalse
getCertificateIssuer()
will always returnnull
,previousCertificateIssuer
is ignored. If thisisIndirect
is specified and this CRLEntry has no certificate issuer CRL entry extensionpreviousCertificateIssuer
is returned bygetCertificateIssuer()
.- Parameters:
c
- TBSCertList.CRLEntry object.isIndirect
-true
if the corresponding CRL is a indirect CRL.previousCertificateIssuer
- Certificate issuer of the previous CRLEntry.
-
-
Method Detail
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as we currently don't handle any extensions!
-
getCertificateIssuer
public X500Principal getCertificateIssuer()
- Overrides:
getCertificateIssuer
in classX509CRLEntry
-
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
-
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
-
getExtensionValue
public byte[] getExtensionValue(String oid)
-
hashCode
public int hashCode()
Cache the hashCode value - calculating it with the standard method.- Overrides:
hashCode
in classX509CRLEntry
- Returns:
- calculated hashCode.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classX509CRLEntry
-
getEncoded
public byte[] getEncoded() throws CRLException
- Specified by:
getEncoded
in classX509CRLEntry
- Throws:
CRLException
-
getSerialNumber
public BigInteger getSerialNumber()
- Specified by:
getSerialNumber
in classX509CRLEntry
-
getRevocationDate
public Date getRevocationDate()
- Specified by:
getRevocationDate
in classX509CRLEntry
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensions
in classX509CRLEntry
-
toString
public String toString()
- Specified by:
toString
in classX509CRLEntry
-
-