Package com.axelor.auth.password
Class DefaultAuthPasswordManager
java.lang.Object
com.axelor.auth.password.DefaultAuthPasswordManager
- All Implemented Interfaces:
AuthPasswordManager
Default implementation of
AuthPasswordManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptions of all currently enabled policies, in evaluation order.Validates the given password against all registered policies.
-
Constructor Details
-
DefaultAuthPasswordManager
-
-
Method Details
-
validate
Description copied from interface:AuthPasswordManagerValidates the given password against all registered policies.Policies are checked in sequence and stop at the first violation.
- Specified by:
validatein interfaceAuthPasswordManager- Parameters:
password- the plain-text password to validateuser- the user for context-aware checks, ornullfor new users- Returns:
- an
InvalidPolicydescribing the first violated policy, ornullif all policies pass
-
getDescriptions
Description copied from interface:AuthPasswordManagerReturns the descriptions of all currently enabled policies, in evaluation order. Policies that returnnullfromPasswordPolicy.getDescription()are excluded.The resulting list is intended to be displayed as guidance on the login or change-password page, before the user submits a new password.
- Specified by:
getDescriptionsin interfaceAuthPasswordManager- Returns:
- an ordered list of policy descriptions
-