Class Hash

  • All Implemented Interfaces:
    Binary, Streamable

    public class Hash
    extends CryptoBinary
    Simple datatype as container for a hash.
    Since:
    1.0.0
    Author:
    Joerg Hohwiller (hohwille at users.sourceforge.net)
    • Constructor Detail

      • Hash

        public Hash​(byte[] data)
        The constructor.
        Parameters:
        data - the raw binary data.
    • Method Detail

      • of

        public static Hash of​(byte[] hash)
        Parameters:
        hash - the raw representation.
        Returns:
        the parsed Hash or null in case hash was null.
      • ofHex

        public static Hash ofHex​(String hex)
        Parameters:
        hex - the data as hex.
        Returns:
        the parsed Hash or null in case hex was null.