public class CertHash extends ASN1Object
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
certificateHash |
private AlgorithmIdentifier |
hashAlgorithm |
| Modifier | Constructor and Description |
|---|---|
|
CertHash(AlgorithmIdentifier hashAlgorithm,
byte[] certificateHash)
Constructor from a given details.
|
private |
CertHash(ASN1Sequence seq)
Constructor from ASN1Sequence.
|
| 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, toASN1Objectprivate AlgorithmIdentifier hashAlgorithm
private byte[] certificateHash
private CertHash(ASN1Sequence seq)
The sequence is of type CertHash:
CertHash ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
certificateHash OCTET STRING
}
seq - The ASN.1 sequence.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 ASN1EncodabletoASN1Primitive in class ASN1Object