Class CertRecord

java.lang.Object
com.netscape.cmscore.dbs.CertRecord
All Implemented Interfaces:
IAttrSet, IDBObj, Serializable

public class CertRecord extends Object implements IDBObj
A class represents a serializable certificate record.

Version:
$Revision$, $Date$
Author:
thomask
See Also:
  • Field Details

  • Constructor Details

    • CertRecord

      public CertRecord()
      Constructs empty certificate record.
    • CertRecord

      public CertRecord(BigInteger id, Certificate cert, MetaInfo meta)
      Constructs certiificate record with certificate and meta info.
  • Method Details

    • set

      public void set(String name, Object obj) throws EBaseException
      Sets attribute to this record.
      Specified by:
      set in interface IAttrSet
      Parameters:
      name - the name of the attribute
      obj - the attribute object.
      Throws:
      EBaseException - on attribute handling errors.
    • get

      public Object get(String name) throws EBaseException
      Retrieves attributes from this record.
      Specified by:
      get in interface IAttrSet
      Parameters:
      name - the name of the attribute to return.
      Throws:
      EBaseException - on attribute handling errors.
    • delete

      public void delete(String name) throws EBaseException
      Deletes attribute from this record.
      Specified by:
      delete in interface IAttrSet
      Parameters:
      name - the name of the attribute to delete.
      Throws:
      EBaseException - on attribute handling errors.
    • getElements

      public Enumeration<String> getElements()
      Description copied from interface: IAttrSet
      Returns an enumeration of the names of the attributes existing within this AttrSet.
      Specified by:
      getElements in interface IAttrSet
      Returns:
      an enumeration of the attribute names.
    • getSerializableAttrNames

      public Enumeration<String> getSerializableAttrNames()
      Description copied from interface: IDBObj
      Returns a list of serializable attribute names. This method should return the attribute name even if there is no attribute value for the attribute.
      Specified by:
      getSerializableAttrNames in interface IDBObj
      Returns:
      a list of serializable attribute names
    • getCertificate

      public org.mozilla.jss.netscape.security.x509.X509CertImpl getCertificate()
      Retrieves certificate from certificate record.
      Returns:
      certificate
    • getMetaInfo

      public MetaInfo getMetaInfo()
      Retrieves meta information.
      Returns:
      meta information
    • getStatus

      public String getStatus()
      Retrieves certificate status.
      Returns:
      certificate status
    • getAutoRenew

      public String getAutoRenew()
      Retrieves the auto renew mode.
    • getRevocationInfo

      public RevocationInfo getRevocationInfo()
      Retrieves revocation information.
      Returns:
      revocation information
    • getSerialNumber

      public BigInteger getSerialNumber()
      Retrieves serial number of this record. Usually, it is the same of the serial number of the associated certificate.
      Returns:
      certificate serial number
    • getIssuedBy

      public String getIssuedBy()
      Retrieves name of which user issued this certificate.
      Returns:
      name of which user issued this certificate
    • getRevokedBy

      public String getRevokedBy()
      Retrieves name of who revoked this certificate.
      Returns:
      name of who revoked this certificate
    • getRevokedOn

      public Date getRevokedOn()
      Retrieves date when this certificate was revoked.
      Returns:
      date when this certificate was revoked
    • getCertificateSerialNumber

      public BigInteger getCertificateSerialNumber()
      Retrieves serial number from stored certificate.
      Returns:
      certificate serial number
    • getNotAfter

      public Date getNotAfter()
      Retrieves not after.
    • getNotBefore

      public Date getNotBefore()
    • getRevocationDate

      public Date getRevocationDate() throws EDBException
      Return revocation date.
      Throws:
      EDBException
    • getCreateTime

      public Date getCreateTime()
      Retrieves time of creation of this certificate record.
      Returns:
      time of creation of this certificate record
    • getModifyTime

      public Date getModifyTime()
      Retrieves time of modification of this certificate record.
      Returns:
      time of modification of this certificate record
    • getRevReason

      public org.mozilla.jss.netscape.security.x509.RevocationReason getRevReason() throws EBaseException, org.mozilla.jss.netscape.security.x509.X509ExtensionException
      Throws:
      EBaseException
      org.mozilla.jss.netscape.security.x509.X509ExtensionException
    • isCertOnHold

      public boolean isCertOnHold()
      Is this cert on hold?
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object