|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.util.Base64Encoder
public class Base64Encoder
Various conversion methods. These methods are mostly used to convert internal java data fields into byte arrays or strings for use over the network.
Constructor Summary | |
---|---|
Base64Encoder()
|
Method Summary | |
---|---|
static byte[] |
fromBase64String(java.lang.String s)
Performs RFC1521 style Base64 decoding of Base64 encoded data. |
static java.lang.String |
toBase64SessionKeyString(byte[] bytes)
The encoding is more or less Base 64, but instead of '+' and '/' as defined in RFC1521, the characters '_' and '-' are used because they are safe in URLs and file names. |
static java.lang.String |
toBase64String(byte[] bytes)
Performs RFC1521 style Base64 encoding of arbitrary binary data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64Encoder()
Method Detail |
---|
public static final java.lang.String toBase64String(byte[] bytes)
bytes
- The array of bytes to convert to Base64 encoding.
public static final java.lang.String toBase64SessionKeyString(byte[] bytes)
bytes
- The array of bytes to convert to Base64SessionKey
encoding.
public static final byte[] fromBase64String(java.lang.String s)
s
- The Base64 encoded string to decode into binary data.
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |