ASN1Choice, ASN1Encodable, Encodablepublic 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, toASN1Objectpublic OtherHash(OtherHashAlgAndValue otherHash)
public OtherHash(byte[] sha1Hash)
public static OtherHash getInstance(java.lang.Object obj)
public AlgorithmIdentifier getHashAlgorithm()
public byte[] getHashValue()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object