public class CertId
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
value |
Constructor and Description |
---|
CertId(java.math.BigInteger id)
Creates a new CertId from its BigInteger representation.
|
CertId(int id)
Creates a new CertId from its integer representation.
|
CertId(java.lang.String id)
Creates a new CertId from its string representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.math.BigInteger |
toBigInteger()
Converts the CertId into its BigInteger representation.
|
java.lang.String |
toHexString()
Converts the CertId into its hex string representation.
|
java.lang.String |
toString()
Converts the CertId into its string representation.
|
public CertId(java.lang.String id)
id
- a string containing the decimal or hex value for the identifier.public CertId(java.math.BigInteger id)
id
- a BigInteger containing the identifier.public CertId(int id)
id
- an integer containing the identifier.public java.math.BigInteger toBigInteger()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toHexString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object