Class PasswordUtil
java.lang.Object
de.xima.fc.cryptography.PasswordUtil
Utility class to handle password related tasks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBlank(char[] password) Check whether a password is blank.static booleanisNotBlank(char[] password) Check whether a password is not blank.static voidwipePassword(char[] password) Wipes out a password.
-
Method Details
-
isBlank
public static boolean isBlank(char[] password) Check whether a password is blank.- Parameters:
password- the password to check- Returns:
- true if empty or only filled with whitespace characters
-
isNotBlank
public static boolean isNotBlank(char[] password) Check whether a password is not blank.- Parameters:
password- the password to check- Returns:
- true if the password is not empty or contains only whitespace characters.
-
wipePassword
public static void wipePassword(char[] password) Wipes out a password.- Parameters:
password- the password to wipe out
-