public class PartialHashtree
extends org.bouncycastle.asn1.ASN1Object
The ASN.1 notation for a PartialHashTree is:
PartialHashtree ::= SEQUENCE OF OCTET STRING
Constructor and Description |
---|
PartialHashtree(byte[] values) |
PartialHashtree(byte[][] values) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsHash(byte[] hash) |
static PartialHashtree |
getInstance(java.lang.Object obj)
Return a PartialHashtree from the given object.
|
int |
getValueCount() |
byte[][] |
getValues() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public PartialHashtree(byte[] values)
public PartialHashtree(byte[][] values)
public static PartialHashtree getInstance(java.lang.Object obj)
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public int getValueCount()
public byte[][] getValues()
public boolean containsHash(byte[] hash)
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object