Package com.netscape.certsrv.dbs.certdb
Class CertId
java.lang.Object
com.netscape.certsrv.dbs.certdb.CertId
- All Implemented Interfaces:
JSONSerializer
,Serializable
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
- See Also:
-
Field Summary
FieldsFields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
Constructor Summary
ConstructorsConstructorDescriptionCertId
(int id) Creates a new CertId from its integer representation.Creates a new CertId from its string representation.CertId
(BigInteger id) Creates a new CertId from its BigInteger representation. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Field Details
-
value
-
-
Constructor Details
-
CertId
Creates a new CertId from its string representation.- Parameters:
id
- a string containing the decimal or hex value for the identifier.
-
CertId
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
Converts the CertId into its BigInteger representation.- Returns:
- a BigInteger containing the identifier.
-
toString
Converts the CertId into its string representation. The string form can be stored in a database (such as the LDAP directory) -
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() -
equals
-