Module rodeo.password.pgencheck
Package rodeo.password.pgencheck
Class BadCountForCharacterTypeError
java.lang.Object
rodeo.password.pgencheck.PasswordCheckError
rodeo.password.pgencheck.BadCountForCharacterTypeError
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 Summary
Modifier and TypeMethodDescriptionint
Returns the actual, problematic, count.Returns the character group.int
Returns the index of the character group.int
Returns either the expected minimum or expected maximum representatives expected for the character group depending on the error type: the minimum forPasswordCheckStatus.NOT_ENOUGH_OF_CHARACTER_GROUP
and the maximum forPasswordCheckStatus.TOO_MANY_OF_CHARACTER_GROUP
.Methods inherited from class rodeo.password.pgencheck.PasswordCheckError
getErrorType
-
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 thePasswordChecker.Factory.addCharGroup
functions.- Returns:
- the index of the character group.
- See Also:
-
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 forPasswordCheckStatus.NOT_ENOUGH_OF_CHARACTER_GROUP
and the maximum forPasswordCheckStatus.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
-