public class CertHash extends ASN1Object
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
| Constructor and Description |
|---|
CertHash(AlgorithmIdentifier hashAlgorithm,
byte[] certificateHash)
Constructor from a given details.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCertificateHash() |
AlgorithmIdentifier |
getHashAlgorithm() |
static CertHash |
getInstance(java.lang.Object obj) |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic CertHash(AlgorithmIdentifier hashAlgorithm, byte[] certificateHash)
hashAlgorithm - The hash algorithm identifier.certificateHash - The hash of the whole DER encoding of the certificate.public static CertHash getInstance(java.lang.Object obj)
public AlgorithmIdentifier getHashAlgorithm()
public byte[] getCertificateHash()
public ASN1Primitive toASN1Primitive()
Returns:
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object