public class OtherHash extends ASN1Object implements ASN1Choice
OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue }
Modifier and Type | Field and Description |
---|---|
private OtherHashAlgAndValue |
otherHash |
private ASN1OctetString |
sha1Hash |
Modifier | Constructor and Description |
---|---|
private |
OtherHash(ASN1OctetString sha1Hash) |
|
OtherHash(byte[] sha1Hash) |
|
OtherHash(OtherHashAlgAndValue otherHash) |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getHashAlgorithm() |
byte[] |
getHashValue() |
static OtherHash |
getInstance(Object obj) |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private ASN1OctetString sha1Hash
private OtherHashAlgAndValue otherHash
private OtherHash(ASN1OctetString sha1Hash)
public OtherHash(OtherHashAlgAndValue otherHash)
public OtherHash(byte[] sha1Hash)
public static OtherHash getInstance(Object obj)
public AlgorithmIdentifier getHashAlgorithm()
public byte[] getHashValue()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object