credentialProvider/src/main/java/nl/nn/credentialprovider/util/Misc.java
/**
	 *
	 * @return the hexadecimal string representation of the byte array.
	 */
@return the hexadecimal string representation of the byte array.
@return the hexadecimal string representation of the byte array .
public static String asHex(byte[] buf)
	{
		char[] chars = new char[2 * buf.length];
		for (int i = 0; i < buf.length; ++i)
		{
			chars[2 * i] = HEX_CHARS[(buf[i] & 0xF0) >>> 4];
			chars[2 * i + 1] = HEX_CHARS[buf[i] & 0x0F];
		}
		return new String(chars);
	}
public static String asHex ( byte [ ] buf ) { char [ ] chars = new char [ 2 * buf . length ] ; for ( int i = 0 ; i < buf . length ; ++ i ) { chars [ 2 * i ] = HEX_CHARS [ ( buf [ i ] & 0xF0 ) >>> 4 ] ; chars [ 2 * i + 1 ] = HEX_CHARS [ buf [ i ] & 0x0F ] ; } return new String ( chars ) ; }
@return the hexadecimal string representation of the byte array.
@return the hexadecimal string representation of the byte array .