public class CertId
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
CertID ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
issuerNameHash OCTET STRING, -- Hash of Issuer's DN
issuerKeyHash OCTET STRING, -- Hash of Issuers public key
serialNumber CertificateSerialNumber
}
| Constructor and Description |
|---|
CertId(com.tencent.kona.sun.security.util.DerInputStream derIn)
Creates a CertId from its ASN.1 DER encoding.
|
CertId(javax.security.auth.x500.X500Principal issuerName,
java.security.PublicKey issuerKey,
SerialNumber serialNumber) |
CertId(java.security.cert.X509Certificate issuerCert,
SerialNumber serialNumber)
Creates a CertId.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Encode the CertId using ASN.1 DER.
|
boolean |
equals(java.lang.Object other)
Compares this CertId for equality with the specified
object.
|
com.tencent.kona.sun.security.x509.AlgorithmId |
getHashAlgorithm()
Return the hash algorithm identifier.
|
byte[] |
getIssuerKeyHash()
Return the hash value for the issuer key.
|
byte[] |
getIssuerNameHash()
Return the hash value for the issuer name.
|
java.math.BigInteger |
getSerialNumber()
Return the serial number.
|
int |
hashCode()
Returns a hashcode value for this CertId.
|
java.lang.String |
toString()
Create a string representation of the CertId.
|
public CertId(java.security.cert.X509Certificate issuerCert,
SerialNumber serialNumber)
throws java.io.IOException
java.io.IOExceptionpublic CertId(javax.security.auth.x500.X500Principal issuerName,
java.security.PublicKey issuerKey,
SerialNumber serialNumber)
throws java.io.IOException
java.io.IOExceptionpublic CertId(com.tencent.kona.sun.security.util.DerInputStream derIn)
throws java.io.IOException
java.io.IOExceptionpublic com.tencent.kona.sun.security.x509.AlgorithmId getHashAlgorithm()
public byte[] getIssuerNameHash()
public byte[] getIssuerKeyHash()
public java.math.BigInteger getSerialNumber()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the object to test for equality with this object.public java.lang.String toString()
toString in class java.lang.Object