Class 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 Detail

      • X509CRLEntryObject

        public X509CRLEntryObject​(TBSCertList.CRLEntry c,
                                  boolean isIndirect,
                                  X500Name 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 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!
        Returns:
        true if an unsupported CRITICAL extension is present, false otherwise.
      • getCertificateIssuer

        public X500Principal getCertificateIssuer()
        Description copied from class: X509CRLEntry
        Returns the issuer of the revoked certificate.
        Overrides:
        getCertificateIssuer in class X509CRLEntry
        Returns:
        the issuer of the revoked certificate, or null if the issuer is equal to the CRL issuer.
      • getCriticalExtensionOIDs

        public Set getCriticalExtensionOIDs()
        Description copied from interface: X509Extension
        Returns 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 null if no extensions are present.
      • getNonCriticalExtensionOIDs

        public Set getNonCriticalExtensionOIDs()
        Description copied from interface: X509Extension
        Returns 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 null if no extensions are present.
      • getExtensionValue

        public byte[] getExtensionValue​(String oid)
        Description copied from interface: X509Extension
        Returns 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 null if no extension for the specified OID can be found.
      • equals

        public boolean equals​(Object o)
        Description copied from class: X509CRLEntry
        Returns whether the specified object equals to this instance.
        Overrides:
        equals in class X509CRLEntry
        Parameters:
        o - the object to compare.
        Returns:
        true if the specified object equals to this instance, otherwise false.
        See Also:
        Object.hashCode()
      • getSerialNumber

        public BigInteger getSerialNumber()
        Description copied from class: X509CRLEntry
        Returns the serial number of the revoked certificate.
        Specified by:
        getSerialNumber in class X509CRLEntry
        Returns:
        the serial number of the revoked certificate.
      • getRevocationDate

        public Date getRevocationDate()
        Description copied from class: X509CRLEntry
        Returns the date when the certificate is revoked.
        Specified by:
        getRevocationDate in class X509CRLEntry
        Returns:
        the date when the certificate is revoked.
      • hasExtensions

        public boolean hasExtensions()
        Description copied from class: X509CRLEntry
        Returns whether this CRL entry has extensions.
        Specified by:
        hasExtensions in class X509CRLEntry
        Returns:
        true is this CRL entry has extensions, otherwise false.
      • toString

        public String toString()
        Description copied from class: X509CRLEntry
        Returns a string representation of this instance.
        Specified by:
        toString in class X509CRLEntry
        Returns:
        a string representation of this instance.