Interface LengthPasswordPolicy

All Superinterfaces:
PasswordPolicy
All Known Implementing Classes:
DefaultLengthPasswordPolicy

public interface LengthPasswordPolicy extends PasswordPolicy
Defines a password policy based on the required minimum password length.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the unique identifier of this policy, used to look up its configuration.
    default boolean
    Returns 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

  • Method Details

    • getPolicyId

      default String getPolicyId()
      Description copied from interface: PasswordPolicy
      Returns the unique identifier of this policy, used to look up its configuration. The corresponding enabled setting is user.password.<policyId>.enabled.
      Specified by:
      getPolicyId in interface PasswordPolicy
      Returns:
      the policy identifier
    • isMandatory

      default boolean isMandatory()
      Description copied from interface: PasswordPolicy
      Returns whether this policy is mandatory and cannot be disabled via configuration. Mandatory policies are always enforced regardless of the user.password.<id>.enabled setting.
      Specified by:
      isMandatory in interface PasswordPolicy
      Returns:
      true if this policy cannot be disabled