Package org.fcrepo.kernel.api.services
Interface FixityService
-
- All Known Implementing Classes:
FixityServiceImpl
public interface FixityService
Service which calculates and compares digests for binary objects- Author:
- peichman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RdfStream
checkFixity(Binary binary)
Digest this binary with the digest algorithms providedCollection<URI>
getFixity(Binary binary, Collection<String> algorithms)
Calculate the requested set of digests for the provided binary
-
-
-
Method Detail
-
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
RdfStream checkFixity(Binary binary)
Digest this binary with the digest algorithms provided- Parameters:
binary
- the binary resource to digest- Returns:
- The result of the fixity check.
-
-