Package org.jasypt.commons
Class CommonUtils
java.lang.Object
org.jasypt.commons.CommonUtils
Common utils regarding treatment of parameter values and encoding operations. This class is for internal use only.
- Since:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
appendArrays
(byte[] firstArray, byte[] secondArray) static byte[]
fromHexadecimal
(String message) static Boolean
getStandardBooleanValue
(String valueStr) static String
getStandardStringOutputType
(String valueStr) static boolean
static boolean
isNotEmpty
(String string) static int
static String[]
static String[]
static String
substringAfter
(String string, String separator) static String
substringBefore
(String string, String separator) static String
toHexadecimal
(byte[] message) static void
validateIsTrue
(boolean expression, String message) static void
validateNotEmpty
(String string, String message) static void
validateNotNull
(Object object, String message)
-
Field Details
-
STRING_OUTPUT_TYPE_BASE64
- See Also:
-
STRING_OUTPUT_TYPE_HEXADECIMAL
- See Also:
-
STRING_OUTPUT_TYPE_HEXADECIMAL_NAMES
-
hexDigits
private static char[] hexDigits
-
-
Constructor Details
-
CommonUtils
private CommonUtils()
-
-
Method Details
-
getStandardBooleanValue
-
getStandardStringOutputType
-
toHexadecimal
-
fromHexadecimal
-
isEmpty
-
isNotEmpty
-
validateNotNull
-
validateNotEmpty
-
validateIsTrue
-
split
-
split
-
substringBefore
-
substringAfter
-
nextRandomInt
public static int nextRandomInt() -
appendArrays
public static byte[] appendArrays(byte[] firstArray, byte[] secondArray)
-