Package de.xima.fc.cryptography
Class PasswordUtil
- java.lang.Object
-
- de.xima.fc.cryptography.PasswordUtil
-
public final class PasswordUtil extends Object
Utility class to handle password related tasks.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-