Class Base64


  • public class Base64
    extends Object
    This is a Base64 util class.
    • Constructor Detail

      • Base64

        public Base64()
    • Method Detail

      • encodeBase64

        @NotNull
        @Contract("_ -> new")
        public static byte[] encodeBase64​(byte[] bytes)
        Used to encode the data with base64
        Parameters:
        bytes - the data need to be encoded
        Returns:
        the encoded data with base64
      • decodeBase64

        public static byte[] decodeBase64​(byte[] value)
        Used to decode the data with base64
        Parameters:
        value - the data need to be decoded
        Returns:
        the decoded data with base64