Class RevokedCertImpl

All Implemented Interfaces:
Serializable, X509Extension

public class RevokedCertImpl extends RevokedCertificate implements Serializable

Abstract class for a revoked certificate in a CRL. This class is for each entry in the revokedCertificates, so it deals with the inner SEQUENCE. The ASN.1 definition for this is:

 revokedCertificates    SEQUENCE OF SEQUENCE  {
     userCertificate    CertificateSerialNumber,
     revocationDate     ChoiceOfTime,
     crlEntryExtensions Extensions OPTIONAL
                        -- if present, must be v2
 }  OPTIONAL

 CertificateSerialNumber  ::=  INTEGER

 Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension

 Extension  ::=  SEQUENCE  {
     extnId        OBJECT IDENTIFIER,
     critical      BOOLEAN DEFAULT FALSE,
     extnValue     OCTET STRING
                   -- contains a DER encoding of a value
                   -- of the type registered for use with
                   -- the extnId object identifier value
 }
 
Version:
1.6 97/12/10
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • serialNumber

      private SerialNumber serialNumber
    • revocationDate

      private Date revocationDate
    • extensions

      private CRLExtensions extensions
    • revokedCert

      private byte[] revokedCert
    • isExplicit

      private static final boolean isExplicit
      See Also:
  • Constructor Details

    • RevokedCertImpl

      public RevokedCertImpl()
      Default constructor.
    • RevokedCertImpl

      public RevokedCertImpl(BigInteger num, Date date)
      Constructs a revoked certificate entry using the serial number and revocation date.
      Parameters:
      num - the serial number of the revoked certificate.
      date - the Date on which revocation took place.
    • RevokedCertImpl

      public RevokedCertImpl(BigInteger num, Date date, CRLExtensions crlEntryExts)
      Constructs a revoked certificate entry using the serial number, revocation date and the entry extensions.
      Parameters:
      num - the serial number of the revoked certificate.
      date - the Date on which revocation took place.
      crlEntryExts - the extensions for this entry.
    • RevokedCertImpl

      public RevokedCertImpl(byte[] revokedCert) throws CRLException, X509ExtensionException
      Unmarshals a revoked certificate from its encoded form.
      Parameters:
      revokedCert - the encoded bytes.
      Throws:
      CRLException - on parsing errors.
      X509ExtensionException - on extension handling errors.
    • RevokedCertImpl

      public RevokedCertImpl(DerValue derValue) throws CRLException, X509ExtensionException
      Unmarshals a revoked certificate from its encoded form.
      Parameters:
      derValue - the DER value containing the revoked certificate.
      Throws:
      CRLException - on parsing errors.
      X509ExtensionException - on extension handling errors.
  • Method Details