org.codehaus.plexus.digest
public interface Digester
Field Summary | |
---|---|
String | ROLE |
Method Summary | |
---|---|
String | calc(File file)
Calculate a checksum for a file.
|
String | getAlgorithm()
Get the algorithm used for the checksum.
|
void | verify(File file, String checksum)
Verify that a checksum is correct.
|
Parameters: file the file to calculate the checksum for
Returns: the current checksum.
Throws: DigesterException if there was a problem computing the hashcode.
Returns: the algorithm
Parameters: file the file to compute the checksum for checksum the checksum to compare to
Throws: DigesterException if there was a problem computing the hashcode.