Package org.openbravo.service.password
Class PasswordStrengthChecker
- java.lang.Object
-
- org.openbravo.service.password.PasswordStrengthChecker
-
@ApplicationScoped public class PasswordStrengthChecker extends Object
Utility class used to check that passwords meets a minimum strength policy. Strong passwords should be at least 8 characters long and contain at least 3 out of the following: Uppercase letters, lowercase letters, digits or special characters.- Author:
- jarmendariz
-
-
Constructor Summary
Constructors Constructor Description PasswordStrengthChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isStrongPassword(String password)
Verifies that the given password meets the minimum strength criteria
-
-
-
Method Detail
-
isStrongPassword
public boolean isStrongPassword(String password)
Verifies that the given password meets the minimum strength criteria- Parameters:
password
- The password to evaluate- Returns:
- true if the password is strong enough, false otherwise
-
-