Class 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 Detail

      • 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:
        PasswordChecker.Factory
      • getCharacterGroup

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

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