Package com.axelor.auth.password.policy
Interface LengthPasswordPolicy
- All Superinterfaces:
PasswordPolicy
- All Known Implementing Classes:
DefaultLengthPasswordPolicy
Defines a password policy based on the required minimum password length.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the unique identifier of this policy, used to look up its configuration.default booleanReturns whether this policy is mandatory and cannot be disabled via configuration.Methods inherited from interface com.axelor.auth.password.PasswordPolicy
getDescription, isEnabledByDefault, validate
-
Field Details
-
ID
- See Also:
-
-
Method Details
-
getPolicyId
Description copied from interface:PasswordPolicyReturns the unique identifier of this policy, used to look up its configuration. The corresponding enabled setting isuser.password.<policyId>.enabled.- Specified by:
getPolicyIdin interfacePasswordPolicy- Returns:
- the policy identifier
-
isMandatory
default boolean isMandatory()Description copied from interface:PasswordPolicyReturns whether this policy is mandatory and cannot be disabled via configuration. Mandatory policies are always enforced regardless of theuser.password.<id>.enabledsetting.- Specified by:
isMandatoryin interfacePasswordPolicy- Returns:
trueif this policy cannot be disabled
-