Class Base64Util
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.util.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 instanceboolean
isValidBase64(java.lang.String input)
Validates the input string if it is a valid base64 encoding or not.
-
-
-
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.
-
-