Class Base64Encoder

  • public class Base64Encoder
    extends java.lang.Object
    Java 7 compatible Base64 encode/decode functions. Based on Apache Commons Codec.

    Note: Once upgrading to Java 8+, replace by native Base64 encoder.

    • Constructor Summary

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static byte[]decode​(java.lang.String base64Encoded) 
      static java.lang.StringencodeUrl​(byte[] bytes) 
      static java.lang.StringencodeUrlWithoutPadding​(byte[] bytes) 
      static java.lang.StringencodeWithoutPadding​(byte[] bytes) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Base64Encoder

        public Base64Encoder()
    • Method Detail

      • decode

        public static byte[] decode​(java.lang.String base64Encoded)
      • encodeWithoutPadding

        public static java.lang.String encodeWithoutPadding​(byte[] bytes)
      • encodeUrl

        public static java.lang.String encodeUrl​(byte[] bytes)
      • encodeUrlWithoutPadding

        public static java.lang.String encodeUrlWithoutPadding​(byte[] bytes)