Class Hash

    • Constructor Detail

      • Hash

        public Hash​(byte[] value,
                    String algorithm)
        Creates hash value.
        Parameters:
        value - The hash value.
        algorithm - The hash algorithm.
    • Method Detail

      • from

        public static Hash from​(Hashed hashed)
      • getHashAlgorithm

        public final String getHashAlgorithm()
        Gets the hash algorithm.
        Specified by:
        getHashAlgorithm in interface Hashed
        Returns:
        The hash algorithm.
      • getHashValue

        public final byte[] getHashValue()
        Gets the hash value.
        Specified by:
        getHashValue in interface Hashed
        Returns:
        The hash value.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object