Package enterprises.iwakura.amber
Interface ChecksumValidator
- All Known Implementing Classes:
ChecksumValidatorImpl
public interface ChecksumValidator
Validates the checksum of a file against a given checksum and type.
-
Method Summary
Modifier and TypeMethodDescriptionvalidate(ChecksumType checksumType, String checksum, Path file) Validates the checksum of the given file.
-
Method Details
-
validate
Validates the checksum of the given file. On unsupported algorithms, this method returns aChecksumResult.UNSUPPORTED- Parameters:
checksumType- the type of checksum (e.g., MD5, SHA-1, SHA-256)checksum- the expected checksum valuefile- the file to validate- Returns:
- the result of the checksum validation
- Throws:
IOException- if an I/O error occurs
-