|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmd5.HexString
Contains utility functions for converting between hexadecimal strings and their equivalent byte buffers or String objects.
| Constructor Summary | |
HexString()
|
|
| Method Summary | |
static java.lang.String |
bufferToHex(byte[] buffer)
Returns a string containing the hexadecimal representation of the input byte array. |
static java.lang.String |
bufferToHex(byte[] buffer,
int startOffset,
int length)
Returns a string containing the hexadecimal representation of the input byte array. |
static java.lang.String |
getMD5(java.lang.String clearTextPassword)
|
static byte[] |
hexToBuffer(java.lang.String hexString)
Returns a byte array built from the byte values represented by the input hexadecimal string. |
static java.lang.String |
hexToString(java.lang.String hexString)
Returns a string built from the byte values represented by the input hexadecimal string. |
static java.lang.String |
stringToHex(java.lang.String s)
Returns a string containing the hexadecimal representation of the input string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HexString()
| Method Detail |
public static java.lang.String getMD5(java.lang.String clearTextPassword)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic static java.lang.String stringToHex(java.lang.String s)
s - a string to convert to hex
public static java.lang.String bufferToHex(byte[] buffer)
buffer - a buffer to convert to hex
public static java.lang.String bufferToHex(byte[] buffer,
int startOffset,
int length)
buffer - a buffer to convert to hexstartOffset - the offset of the first byte in the buffer to processlength - the number of bytes in the buffer to process
public static java.lang.String hexToString(java.lang.String hexString)
throws java.lang.NumberFormatException
hexString - a string of hexadecimal characters
java.lang.NumberFormatException
public static byte[] hexToBuffer(java.lang.String hexString)
throws java.lang.NumberFormatException
hexString - a string of hexadecimal characters
java.lang.NumberFormatException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||