Class PasswordUtil


  • public final class PasswordUtil
    extends Object
    Utility class to handle password related tasks.
    • 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