public class PartialHashTreeProcessor extends Object
| Constructor and Description |
|---|
PartialHashTreeProcessor(PartialHashtree tree) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHash(byte[] hash)
Checks whether a PartialHashtree (RFC4998) contains a given hash.
|
byte[] |
getHash(DigestCalculator digestCalculator)
Compute a hash over the whole partialHashTree:
- Concatenate all the hashes contained in the partial hash tree;
- Generate a hash over the concatenated hashes, using a provided
DigestCalculator. |
void |
verifyContainsHash(byte[] hash)
Checks whether a PartialHashtree (RFC4998) contains a given hash.
|
public PartialHashTreeProcessor(PartialHashtree tree)
public byte[] getHash(DigestCalculator digestCalculator)
DigestCalculator.digestCalculator - the DigestCalculator to use in order to generate the hashpublic void verifyContainsHash(byte[] hash)
throws PartialHashTreeVerificationException
hash - the hash to checkPartialHashTreeVerificationException - if the hash is not present in the
PartialHashtreepublic boolean containsHash(byte[] hash)
hash - the hash to checkCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.