Package net.handle.hdllib.trust
Class HandleValueDigester
- java.lang.Object
 - 
- net.handle.hdllib.trust.HandleValueDigester
 
 
- 
public class HandleValueDigester extends java.lang.Object 
- 
- 
Constructor Summary
Constructors Constructor Description HandleValueDigester() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestedHandleValuesdigest(java.util.List<HandleValue> values, java.lang.String alg)booleanverify(DigestedHandleValues digestedValues, java.util.List<HandleValue> values)Verifies that the given digests correspond to the given values. 
 - 
 
- 
- 
Method Detail
- 
digest
public DigestedHandleValues digest(java.util.List<HandleValue> values, java.lang.String alg) throws java.security.NoSuchAlgorithmException
- Throws:
 java.security.NoSuchAlgorithmException
 
- 
verify
public boolean verify(DigestedHandleValues digestedValues, java.util.List<HandleValue> values) throws java.security.NoSuchAlgorithmException
Verifies that the given digests correspond to the given values. Note that the function only verifies exact correspondence; seeHandleVerifierfor methods that deal separately with undigested, digested-but-missing, bad-digest, and verified values.- Parameters:
 digestedValues- the digests to compare.values- the handle values to compare.- Returns:
 - true if the digests and values correspond, otherwise false.
 - Throws:
 java.security.NoSuchAlgorithmException
 
 - 
 
 -