|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tinyradius.util.RadiusUtil
public class RadiusUtil
This class contains miscellaneous static utility functions.
| Constructor Summary | |
|---|---|
RadiusUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getHexString(byte[] data)
Returns the byte array as a hex string in the format "0x1234". |
static java.lang.String |
getStringFromUtf8(byte[] utf8)
Creates a string from the passed byte array containing the string in UTF-8 representation. |
static byte[] |
getUtf8Bytes(java.lang.String str)
Returns the passed string as a byte array containing the string in UTF-8 representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RadiusUtil()
| Method Detail |
|---|
public static byte[] getUtf8Bytes(java.lang.String str)
str - Java string
public static java.lang.String getStringFromUtf8(byte[] utf8)
utf8 - UTF-8 byte array
public static java.lang.String getHexString(byte[] data)
data - byte array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||