public interface CustomFixityPlugin
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgent()
Returns the agent name.
|
java.lang.String |
getAlgorithm()
Returns the fixity algorithm.
|
java.util.List<java.lang.String> |
getErrors()
Returns list of mismatches detected during fixity calculation.
|
java.lang.String |
getFixity(java.lang.String filePath,
java.lang.String oldFixity)
Calculates and returns fixity for the given file.
|
java.lang.String getFixity(java.lang.String filePath, java.lang.String oldFixity) throws java.lang.Exception
filePath
- the path to the fileoldFixity
- the value of the previous fixity on this file, null if this is the first time this type of fixity
is calculated on the filejava.lang.Exception
- on any error during the actual fixity calculationjava.lang.String getAlgorithm()
java.lang.String getAgent()
java.util.List<java.lang.String> getErrors()