public class EntrustCertHash extends java.lang.Object implements ASN1Type
EntrustCertHash ::= SEQUENCE
{
certHash OCTET STRING,
-- the hash of the certificate, using the same hash algorithm
-- as is used to create and verify the certificate signature
certReqId INTEGER
-- to match this confirmation with the corresponding req/rep
}
| Constructor and Description |
|---|
EntrustCertHash(ASN1Object obj)
Creates a new
EntrustCertHash from an ASN1Object. |
EntrustCertHash(byte[] certHash,
java.math.BigInteger certReqId)
Creates a new
EntrustCertHash object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCertHash structure from an
ASN1Object. |
byte[] |
getCertHash()
Returns the hash of the certificate.
|
java.math.BigInteger |
getCertReqId()
Returns the certificate request identifier of the certificate.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCertHash object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertHash object. |
public EntrustCertHash(byte[] certHash,
java.math.BigInteger certReqId)
EntrustCertHash object with the specified
components.certHash - the hash of the certificatecertReqId - the certificate request identifier of the certificatepublic EntrustCertHash(ASN1Object obj) throws CodingException
EntrustCertHash from an ASN1Object.obj - the ASN.1 representation of an EntrustCertHash structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic byte[] getCertHash()
public java.math.BigInteger getCertReqId()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an EntrustCertHash structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertHash object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertHash object.toString in class java.lang.Object