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
Modifier and Type Method Description X500PrincipalgetCertificateIssuer()Returns the issuer of the revoked certificate.SetgetCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.byte[]getEncoded()Returns this entry in ASN.1 DER encoded form.byte[]getExtensionValue(String oid)Returns the extension value as DER-encoded OCTET string for the specified OID.SetgetNonCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.DategetRevocationDate()Returns the date when the certificate is revoked.BigIntegergetSerialNumber()Returns the serial number of the revoked certificate.booleanhasExtensions()Returns whether this CRL entry has extensions.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!StringtoString()Returns a string representation of this instance.Methods inherited from class java.security.cert.X509CRLEntry
equals
-
Constructor Details
-
X509CRLEntryObject
-
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 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!- Returns:
trueif an unsupported CRITICAL extension is present,falseotherwise.
-
getCertificateIssuer
Description copied from class:X509CRLEntryReturns the issuer of the revoked certificate.- Overrides:
getCertificateIssuerin classX509CRLEntry- Returns:
- the issuer of the revoked certificate, or
nullif the issuer is equal to the CRL issuer.
-
getCriticalExtensionOIDs
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as CRITIAL, an empty set if none
are marked as CRITICAL, or
nullif no extensions are present.
-
getNonCriticalExtensionOIDs
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as NON-CRITIAL, an empty set if
none are marked as NON-.CRITICAL, or
nullif no extensions are present.
-
getExtensionValue
Description copied from interface:X509ExtensionReturns the extension value as DER-encoded OCTET string for the specified OID.- Parameters:
oid- the object identifier to get the extension value for.- Returns:
- the extension value as DER-encoded OCTET string, or
nullif no extension for the specified OID can be found.
-
hashCode
public int hashCode()Cache the hashCode value - calculating it with the standard method.- Overrides:
hashCodein classX509CRLEntry- Returns:
- calculated hashCode.
- See Also:
Object.equals(java.lang.Object)
-
getEncoded
Description copied from class:X509CRLEntryReturns this entry in ASN.1 DER encoded form.- Specified by:
getEncodedin classX509CRLEntry- Returns:
- the encoded form of this entry.
- Throws:
CRLException- if encoding fails.
-
getSerialNumber
Description copied from class:X509CRLEntryReturns the serial number of the revoked certificate.- Specified by:
getSerialNumberin classX509CRLEntry- Returns:
- the serial number of the revoked certificate.
-
getRevocationDate
Description copied from class:X509CRLEntryReturns the date when the certificate is revoked.- Specified by:
getRevocationDatein classX509CRLEntry- Returns:
- the date when the certificate is revoked.
-
hasExtensions
public boolean hasExtensions()Description copied from class:X509CRLEntryReturns whether this CRL entry has extensions.- Specified by:
hasExtensionsin classX509CRLEntry- Returns:
trueis this CRL entry has extensions, otherwisefalse.
-
toString
Description copied from class:X509CRLEntryReturns a string representation of this instance.- Specified by:
toStringin classX509CRLEntry- Returns:
- a string representation of this instance.
-