Package com.couchbase.client.core.utils
Class Base64
- java.lang.Object
-
- com.couchbase.client.core.utils.Base64
-
public class Base64 extends Object
Utility class to perform base64 encoding/decoding.- Since:
- 1.2.5
- Author:
- Trond Norbye
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(String input)
Decode a Base64 encoded stringstatic String
encode(byte[] input)
Base64 encode a textual string according to RFC 3548
-
-
-
Method Detail
-
encode
public static String encode(byte[] input)
Base64 encode a textual string according to RFC 3548- Parameters:
input
- The string to encode- Returns:
- The encoded string
-
decode
public static byte[] decode(String input)
Decode a Base64 encoded string- Parameters:
input
- The string to decode- Returns:
- The data string
-
-