Class BadCountForCharacterTypeError

java.lang.Object
rodeo.password.pgencheck.PasswordCheckError
rodeo.password.pgencheck.BadCountForCharacterTypeError

public class BadCountForCharacterTypeError extends PasswordCheckError
Records a bad character count error in password validation.

This class is used to record an error when a password does not contain enough representatives of a certain character group or when it contains too many of these.

  • Method Details

    • getCharacterGroupIndex

      public int getCharacterGroupIndex()
      Returns the index of the character group. The groups are indexed in their order of insertion via one of the PasswordChecker.Factory.addCharGroup functions.
      Returns:
      the index of the character group.
      See Also:
    • getCharacterGroup

      public String getCharacterGroup()
      Returns the character group.
      Returns:
      the character group
    • getExpectedCount

      public int getExpectedCount()
      Returns either the expected minimum or expected maximum representatives expected for the character group depending on the error type: the minimum for PasswordCheckStatus.NOT_ENOUGH_OF_CHARACTER_GROUP and the maximum for PasswordCheckStatus.TOO_MANY_OF_CHARACTER_GROUP.
      Returns:
      the minimum or maximum expected count
    • getActualCount

      public int getActualCount()
      Returns the actual, problematic, count.
      Returns:
      the problematic count