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 Type
    Method
    Description
    validate(ChecksumType checksumType, String checksum, Path file)
    Validates the checksum of the given file.
  • Method Details

    • validate

      ChecksumResult validate(ChecksumType checksumType, String checksum, Path file) throws IOException
      Validates the checksum of the given file. On unsupported algorithms, this method returns a ChecksumResult.UNSUPPORTED
      Parameters:
      checksumType - the type of checksum (e.g., MD5, SHA-1, SHA-256)
      checksum - the expected checksum value
      file - the file to validate
      Returns:
      the result of the checksum validation
      Throws:
      IOException - if an I/O error occurs