public class RadiusUtil extends Object
| 构造器和说明 |
|---|
RadiusUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getHexString(byte[] data)
Returns the byte array as a hex string in the format
"0x1234".
|
static String |
getStringFromUtf8(byte[] utf8)
Creates a string from the passed byte array containing the
string in UTF-8 representation.
|
static byte[] |
getUtf8Bytes(String str)
Returns the passed string as a byte array containing the
string in UTF-8 representation.
|
public static byte[] getUtf8Bytes(String str)
str - Java stringpublic static String getStringFromUtf8(byte[] utf8)
utf8 - UTF-8 byte arraypublic static String getHexString(byte[] data)
data - byte arrayCopyright © 2016. All rights reserved.