Module rodeo.password.pgencheck
Package rodeo.password.pgencheck
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActualCount()Returns the actual, problematic, count.StringgetCharacterGroup()Returns the character group.intgetCharacterGroupIndex()Returns the index of the character group.intgetExpectedCount()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_GROUPand the maximum forPasswordCheckStatus.TOO_MANY_OF_CHARACTER_GROUP.-
Methods inherited from class rodeo.password.pgencheck.PasswordCheckError
getErrorType
-
-
-
-
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 thePasswordChecker.Factory.addCharGroupfunctions.- Returns:
- the index of the character group.
- See Also:
PasswordChecker.Factory
-
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 forPasswordCheckStatus.NOT_ENOUGH_OF_CHARACTER_GROUPand 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
-
-