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
public 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 ASN1Encodable
toASN1Primitive
in class ASN1Object