Deprecated
for removal since 6.0.5.
as of Spring Framework 6.0.5 in favor of Base64; scheduled
for removal in 6.2
Adapts to Java 8's java. in a convenience fashion.
java.util.Base64
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: the original byte arraythe encoded byte array src)Base64-decode the given byte array. |
| public static byte[] | Returns: the original byte arraythe encoded UTF-8 String src)Base64-decode the given byte array from a UTF-8 String. |
| public static byte[] | Returns: the original byte arraythe encoded UTF-8 String src)Base64-decode the given byte array from a UTF-8 String using the RFC 4648 "URL and Filename Safe Alphabet". |
| public static byte[] | Returns: the original byte arraythe encoded byte array src)Base64-decode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet". |
| public static byte[] | Returns: the encoded byte arraythe original byte array src)Base64-encode the given byte array. |
| public static String | Returns: the encoded byte array as a UTF-8 Stringthe original byte array src)Base64-encode the given byte array to a String. |
| public static String | Returns: the encoded byte array as a UTF-8 Stringthe original byte array src)Base64-encode the given byte array to a String using the RFC 4648 "URL and Filename Safe Alphabet". |
| public static byte[] | Returns: the encoded byte arraythe original byte array src)Base64-encode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet". |
| Base64Utils | back to summary |
|---|---|
| public Base64Utils() | |
| decode | back to summary |
|---|---|
| public static byte[] decode(byte[] src) Base64-decode the given byte array.
| |
| decodeFromString | back to summary |
|---|---|
| public static byte[] decodeFromString(String src) Base64-decode the given byte array from a UTF-8 String.
| |
| decodeFromUrlSafeString | back to summary |
|---|---|
| public static byte[] decodeFromUrlSafeString(String src) Base64-decode the given byte array from a UTF-8 String using the RFC 4648 "URL and Filename Safe Alphabet".
| |
| decodeUrlSafe | back to summary |
|---|---|
| public static byte[] decodeUrlSafe(byte[] src) Base64-decode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet".
| |
| encode | back to summary |
|---|---|
| public static byte[] encode(byte[] src) Base64-encode the given byte array.
| |
| encodeToString | back to summary |
|---|---|
| public static String encodeToString(byte[] src) Base64-encode the given byte array to a String.
| |
| encodeToUrlSafeString | back to summary |
|---|---|
| public static String encodeToUrlSafeString(byte[] src) Base64-encode the given byte array to a String using the RFC 4648 "URL and Filename Safe Alphabet".
| |
| encodeUrlSafe | back to summary |
|---|---|
| public static byte[] encodeUrlSafe(byte[] src) Base64-encode the given byte array using the RFC 4648 "URL and Filename Safe Alphabet".
| |