Class HashUtil


  • public class HashUtil
    extends Object
    Utilities related to deployment content hashes.
    Author:
    Brian Stansberry (c) 2011 Red Hat Inc.
    • Method Detail

      • bytesToHexString

        public static String bytesToHexString​(byte[] bytes)
        Convert a byte array into a hex string.
        Parameters:
        bytes - the bytes
        Returns:
        the string
      • hexStringToByteArray

        public static byte[] hexStringToByteArray​(String s)
        Convert a hex string into a byte[].
        Parameters:
        s - the string
        Returns:
        the bytes