Package org.fcrepo.kernel.api.services
Interface FixityService
public interface FixityService
Service which calculates and compares digests for binary objects
- Author:
- peichman
-
Method Summary
Modifier and TypeMethodDescriptioncheckFixity(Binary binary) Digest this binary with the digest algorithms providedgetFixity(Binary binary, Collection<String> algorithms) Calculate the requested set of digests for the provided binary
-
Method Details
-
getFixity
Collection<URI> getFixity(Binary binary, Collection<String> algorithms) throws UnsupportedAlgorithmException Calculate the requested set of digests for the provided binary- Parameters:
binary- the binary resource toalgorithms- set of digest algorithms to calculate- Returns:
- list of calculated digests
- Throws:
UnsupportedAlgorithmException- if unsupported digest algorithms were provided
-
checkFixity
Digest this binary with the digest algorithms provided- Parameters:
binary- the binary resource to digest- Returns:
- The result of the fixity check.
-