Interface PayloadChecksumStore

    • Method Detail

      • putChecksumValue

        byte[] putChecksumValue​(ChecksumAlgorithm algorithm,
                                byte[] checksum)
        Store the checksum value computed using the given algorithm.
        Returns:
        The previous value stored for this algorithm or null if not present.
      • getChecksumValue

        byte[] getChecksumValue​(ChecksumAlgorithm algorithm)
        Retrieve the stored checksum value for the given algorithm.
        Returns:
        The checksum value for the given algorithm or null if not present.
      • containsChecksumValue

        boolean containsChecksumValue​(ChecksumAlgorithm algorithm)
        Returns true if the store contains a checksum value for the given algorithm, false otherwise.
      • create

        static PayloadChecksumStore create()
        Returns the default implementation of this interface.