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