| Constructor and Description |
|---|
CertId(ASN1Object obj)
Creates a new
CertId from an ASN1Object. |
CertId(GeneralName issuer,
java.math.BigInteger serialNumber)
Creates a new
CertId object with the specified components. |
CertId(X509Certificate cert)
Creates a new
CertId object from an
X509Certificate object. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a CertId structure from an
ASN1Object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
GeneralName |
getIssuer()
Returns the issuer of the certificate.
|
java.math.BigInteger |
getSerialNumber()
Returns the serial number of the certificate.
|
int |
hashCode()
Returns a hash code value for the object.
|
ASN1Object |
toASN1Object()
Encodes this
CertId object as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
CertId object. |
public CertId(GeneralName issuer, java.math.BigInteger serialNumber)
CertId object with the specified components.issuer - the issuer of the certificateserialNumber - the serial number of the certificatepublic CertId(X509Certificate cert)
CertId object from an
X509Certificate object.
It extracts both the issuer and serial number from the certificate, and
then creates the CertId with these values.
cert - the certificate to extract the certificate identifier frompublic CertId(ASN1Object obj) throws CodingException
CertId from an ASN1Object.obj - the ASN.1 representation of an CertId structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic GeneralName getIssuer()
public java.math.BigInteger getSerialNumber()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an CertId structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
CertId object as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
CertId object.toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Two CertId objects are equal only if their components are
equal.
equals in class java.lang.Objectobj - the reference object with which to comparetrue if the objects are "equal"; false
otherwisepublic int hashCode()
This method is supported for the benefit of hashtables.
hashCode in class java.lang.Object