public final class Base64Util
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] encoded)
Decodes a base64 encoded byte array.
|
static byte[] |
decodeString(java.lang.String encoded)
Decodes a base64 encoded string.
|
static byte[] |
decodeURL(byte[] src)
Decodes a byte array in base64 URL format.
|
static byte[] |
encode(byte[] src)
Encodes a byte array to base64.
|
static java.lang.String |
encodeToString(byte[] src)
Encodes a byte array to a base 64 string.
|
static byte[] |
encodeURLWithoutPadding(byte[] src)
Encodes a byte array to base64 URL format.
|
public static byte[] encode(byte[] src)
src
- the byte array to encodepublic static byte[] encodeURLWithoutPadding(byte[] src)
src
- the byte array to encodepublic static java.lang.String encodeToString(byte[] src)
src
- the byte array to encodepublic static byte[] decode(byte[] encoded)
encoded
- the byte array to decodepublic static byte[] decodeURL(byte[] src)
src
- the byte array to decodepublic static byte[] decodeString(java.lang.String encoded)
encoded
- the string to decode