Class AbstractPasswordService.StrengthValidatorResult

Enclosing interface:

public static class AbstractPasswordService.StrengthValidatorResult extends Object
Result returned when validating password strength.

This class contains information on the validity and the strength of the password together with possible messages. When the password is considered not strong enough, a message should be provided which helps the user pick a stronger password.

See Also:
  • Constructor Details

    • StrengthValidatorResult

      public StrengthValidatorResult(boolean valid, CharSequence message, int strength)
  • Method Details

    • isValid

      public boolean isValid()
      Returns whether the password is considered strong enough.
    • getMessage

      public WString getMessage()
      Returns a message describing the password strength.
    • getStrength

      public int getStrength()
      Returns the password strength in a scale of 0 to 5.