Class Checksums
java.lang.Object
com.googlecode.download.maven.plugin.internal.checksum.Checksums
Checksums supplied to verify file integrity.
- Author:
- Paul Polishchuk
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Checksums
-
-
Method Details
-
isValid
Validates the file with supplied checksums.- Parameters:
file- File to validate.- Returns:
- True if the file matches all supplied checksums or if no checksums were supplied.
-
validate
Validates the file with supplied checksums.- Parameters:
file- File to validate.- Throws:
Exception- If the file didn't match any supplied checksum.
-