|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.services.Base64
The class provides methods to transform any string into a standard base64 string and vice versa.
Method Summary | |
static byte[] |
decode(char[] chars)
Decodes a character array which is standard Base64 complient into the corresponding byte array representation. |
static java.lang.String |
decode(java.lang.String value)
Returns the given string parameter as base64 decoded string or null
if the given string parameter is null . |
static char[] |
encode(byte[] bytes)
Encodes a byte array to a standard Base64 complient character array. |
static java.lang.String |
encode(java.lang.String value)
Returns the given string parameter as base64 encoded string or null
if the given string parameter is null . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String encode(java.lang.String value)
null
if the given string parameter is null
.
value
- The string that should be encoded.
public static java.lang.String decode(java.lang.String value)
null
if the given string parameter is null
.
value
- A base64 encoded string that should be decoded. The base64 encoded string had to be encoded with
the encode method of this class.
java.lang.IllegalArgumentException
- or ArrayOutOfBoundsException if the given string
parameter contains invalid characters. Invalid characters are those that are not part
of the base64 alphabet.public static char[] encode(byte[] bytes)
bytes
- The bytes that will be encoded.
public static byte[] decode(char[] chars)
chars
- The character array that will be decoded.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |