Interface PasswordStrength


public interface PasswordStrength
This class represents the strength of a password based on an analysis of a provided (new) password. The OMM may refuse passwords that are too weak.
Also there may be additional information to display to the user on how to choose an appropriate password.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The quality of the password of an agent.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the amount of average guesses the password or 0 if the amount is unknown.
    Gets the problem of the password leading to the current score or null in case there is no problem.
    int
    Gets the overall score of the password.
    Gets some arbitrary suggestions on how to improve the password further or null in case there are no suggestions.
  • Method Details

    • getScore

      int getScore()
      Gets the overall score of the password. This is a simple number for the strength of the password. This decides whether the OMM will accept the password.
      Returns:
      The overall score of the password determining whether the OMM will accept the password.
    • getGuesses

      double getGuesses()
      Gets the amount of average guesses the password or 0 if the amount is unknown.
      Returns:
      The amount of average guesses the password or 0 if the amount is unknown.
    • getProblem

      String getProblem()
      Gets the problem of the password leading to the current score or null in case there is no problem.
      Returns:
      The problem of the password leading to the current score or null.
    • getSuggestions

      Collection<String> getSuggestions()
      Gets some arbitrary suggestions on how to improve the password further or null in case there are no suggestions.
      Returns:
      Some arbitrary suggestions on how to improve the password further or null.