Package org.bouncycastle.jce.provider
Class X509CRLEntryObject
- java.lang.Object
-
- java.security.cert.X509CRLEntry
-
- org.bouncycastle.jce.provider.X509CRLEntryObject
-
- All Implemented Interfaces:
java.security.cert.X509Extension
public class X509CRLEntryObject extends java.security.cert.X509CRLEntryThe 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 booleanequals(java.lang.Object o)javax.security.auth.x500.X500PrincipalgetCertificateIssuer()java.util.SetgetCriticalExtensionOIDs()byte[]getEncoded()byte[]getExtensionValue(java.lang.String oid)java.util.SetgetNonCriticalExtensionOIDs()java.util.DategetRevocationDate()java.math.BigIntegergetSerialNumber()booleanhasExtensions()inthashCode()Cache the hashCode value - calculating it with the standard method.booleanhasUnsupportedCriticalExtension()Will return true if any extensions are present and marked as critical as we currently don't handle any extensions!java.lang.StringtoString()
-
-
-
Constructor Detail
-
X509CRLEntryObject
public X509CRLEntryObject(TBSCertList.CRLEntry c)
-
X509CRLEntryObject
public X509CRLEntryObject(TBSCertList.CRLEntry c, boolean isIndirect, X500Name previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs. IfisIndirectisfalsegetCertificateIssuer()will always returnnull,previousCertificateIssueris ignored. If thisisIndirectis specified and this CRLEntry has no certificate issuer CRL entry extensionpreviousCertificateIssueris returned bygetCertificateIssuer().- Parameters:
c- TBSCertList.CRLEntry object.isIndirect-trueif 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 javax.security.auth.x500.X500Principal getCertificateIssuer()
- Overrides:
getCertificateIssuerin classjava.security.cert.X509CRLEntry
-
getCriticalExtensionOIDs
public java.util.Set getCriticalExtensionOIDs()
-
getNonCriticalExtensionOIDs
public java.util.Set getNonCriticalExtensionOIDs()
-
getExtensionValue
public byte[] getExtensionValue(java.lang.String oid)
-
hashCode
public int hashCode()
Cache the hashCode value - calculating it with the standard method.- Overrides:
hashCodein classjava.security.cert.X509CRLEntry- Returns:
- calculated hashCode.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.security.cert.X509CRLEntry
-
getEncoded
public byte[] getEncoded() throws java.security.cert.CRLException- Specified by:
getEncodedin classjava.security.cert.X509CRLEntry- Throws:
java.security.cert.CRLException
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
- Specified by:
getSerialNumberin classjava.security.cert.X509CRLEntry
-
getRevocationDate
public java.util.Date getRevocationDate()
- Specified by:
getRevocationDatein classjava.security.cert.X509CRLEntry
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin classjava.security.cert.X509CRLEntry
-
toString
public java.lang.String toString()
- Specified by:
toStringin classjava.security.cert.X509CRLEntry
-
-