Interface ChecksumAlgorithmService.ChecksumAlgorithm

Enclosing interface:
ChecksumAlgorithmService

public static interface ChecksumAlgorithmService.ChecksumAlgorithm
The checksum algorithm.
  • Method Details

    • getName

      @Nonnull String getName()
      Returns the algorithm name, usually used as key, never null value. The name is a standard name of algorithm (if applicable) or any other designator that is algorithm commonly referred with. Example: "SHA-1".
    • getFileExtension

      @Nonnull String getFileExtension()
      Returns the file extension to be used for given checksum file (without leading dot), never null. The extension should be file and URL path friendly, and may differ from algorithm name. The checksum extension SHOULD NOT contain dot (".") character. Example: "sha1".
    • getCalculator

      Each invocation of this method returns a new instance of calculator, never null value.