Class Base64Util


  • public final class Base64Util
    extends java.lang.Object
    Base64 utility
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Base64Util getInstance()
      Get the instance
      boolean isValidBase64​(java.lang.String input)
      Validates the input string if it is a valid base64 encoding or not.
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static Base64Util getInstance()
        Get the instance
        Returns:
        the instance
      • isValidBase64

        public boolean isValidBase64​(java.lang.String input)
        Validates the input string if it is a valid base64 encoding or not. An empty string is also considered as valid. All whitespace are ignored.
        Parameters:
        input - to validate.
        Returns:
        true if the string is a valid Base64 encoding.