Class CertId

java.lang.Object
com.netscape.certsrv.dbs.certdb.CertId

public class CertId extends Object
The CertId class represents the identifier for a particular cert record. This identifier may be used to retrieve the cert record from the database.

Version:
$Revision$ $Date$
Author:
Endi S. Dewata
  • Field Details

  • Constructor Details

    • CertId

      public CertId(String id)
      Creates a new CertId from its string representation.

      Parameters:
      id - a string containing the decimal or hex value for the identifier.
    • CertId

      public CertId(BigInteger id)
      Creates a new CertId from its BigInteger representation.

      Parameters:
      id - a BigInteger containing the identifier.
    • CertId

      public CertId(int id)
      Creates a new CertId from its integer representation.

      Parameters:
      id - an integer containing the identifier.
  • Method Details

    • toBigInteger

      public BigInteger toBigInteger()
      Converts the CertId into its BigInteger representation.

      Returns:
      a BigInteger containing the identifier.
    • toString

      public String toString()
      Converts the CertId into its string representation. The string form can be stored in a database (such as the LDAP directory)

      Overrides:
      toString in class Object
      Returns:
      a string containing the decimal (base 10) value for the identifier.
    • toHexString

      public String toHexString()
      Converts the CertId into its hex string representation. The string form can be stored in a database (such as the LDAP directory)
      Returns:
      a string containing the hex (hex 16) value for the identifier.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object