Package org.bouncycastle.jce.provider
Class X509CRLEntryObject
java.lang.Object
java.security.cert.X509CRLEntry
org.bouncycastle.jce.provider.X509CRLEntryObject
- All Implemented Interfaces:
X509Extension
The following extensions are listed in RFC 2459 as relevant to CRL Entries
ReasonCode Hode Instruction Code Invalidity Date Certificate Issuer
(critical)
-
Constructor Summary
ConstructorsConstructorDescriptionX509CRLEntryObject
(TBSCertList.CRLEntry c, boolean isIndirect, X500Name previousCertificateIssuer) Constructor for CRLEntries of indirect CRLs. -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
byte[]
getExtensionValue
(String oid) boolean
int
hashCode()
Cache the hashCode value - calculating it with the standard method.boolean
Will return true if any extensions are present and marked as critical as we currently don't handle any extensions!toString()
Methods inherited from class java.security.cert.X509CRLEntry
getRevocationReason
-
Constructor Details
-
X509CRLEntryObject
-
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 Details
-
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
- Overrides:
getCertificateIssuer
in classX509CRLEntry
-
getCriticalExtensionOIDs
-
getNonCriticalExtensionOIDs
-
getExtensionValue
-
hashCode
public int hashCode()Cache the hashCode value - calculating it with the standard method.- Overrides:
hashCode
in classX509CRLEntry
- Returns:
- calculated hashCode.
-
equals
- Overrides:
equals
in classX509CRLEntry
-
getEncoded
- Specified by:
getEncoded
in classX509CRLEntry
- Throws:
CRLException
-
getSerialNumber
- Specified by:
getSerialNumber
in classX509CRLEntry
-
getRevocationDate
- Specified by:
getRevocationDate
in classX509CRLEntry
-
hasExtensions
public boolean hasExtensions()- Specified by:
hasExtensions
in classX509CRLEntry
-
toString
- Specified by:
toString
in classX509CRLEntry
-