|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.safeapi.Convert
Conversion tools and methods
| Field Summary | |
static String |
CRYPTO_ON
|
| Constructor Summary | |
Convert()
Loads an instance of Convert. |
|
| Method Summary | |
byte[] |
base64StringToBytes(String sBase64)
Returns a byte array from a Base64 String. |
String |
bytesToBase64String(byte[] bBytes)
Returns a Base64 String from a byte array. |
String |
bytesToHexString(byte[] bBytes)
Returns a string of hexadecimal digits from a byte array. |
String |
bytesToString(byte[] bBytes)
Converts a byte array to string. |
byte[] |
hexStringToBytes(String sHex)
Returns a byte array from a string of hexadecimal digits. |
byte[] |
stringToBytes(String sString)
Converts a string into its bytes representation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String CRYPTO_ON
| Constructor Detail |
public Convert()
| Method Detail |
public String bytesToString(byte[] bBytes)
bBytes - bytes to convert.
public byte[] stringToBytes(String sString)
sString - the string to convert.
public byte[] hexStringToBytes(String sHex)
sHex - string of hexadecimal digits.
public String bytesToHexString(byte[] bBytes)
public String bytesToBase64String(byte[] bBytes)
bBytes - a byte array.
public byte[] base64StringToBytes(String sBase64)
sBase64 - Base64 string.
|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||