Package org.jboss.as.controller
Class HashUtil
- java.lang.Object
-
- org.jboss.as.controller.HashUtil
-
public class HashUtil extends Object
Utilities related to deployment content hashes.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
bytesToHexString(byte[] bytes)
Convert a byte array into a hex string.static byte[]
hexStringToByteArray(String s)
Convert a hex string into a byte[].
-
-
-
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
-
-