Class Base64

java.lang.Object
org.bson.internal.Base64

@Deprecated(since="2022-10-31") public final class Base64 extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.

Provides Base64 encoding and decoding.

This class implements Base64 encoding

Thanks to Apache Commons project. This class refactored from org.apache.commons.codec.binary

Original Thanks to commons project in ws.apache.org for this code.

Since:
3.5
  • Method Details

    • decode

      public static byte[] decode(String s)
      Deprecated.
      Decodes the given Base64-encoded string.
      Parameters:
      s - the Base64-encoded string
      Returns:
      the decoded byte array
    • encode

      public static String encode(byte[] in)
      Deprecated.
      Encodes the given byte array into a Base64-encoded string.
      Parameters:
      in - the byte array
      Returns:
      the Base64-encoded string