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 Details

    • 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