|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.InputVerifier com.gridsystems.config.tools.TextVerifier com.gridsystems.config.tools.PasswordVerifier
public class PasswordVerifier
Verifies that a password field has a proper length and no forbiden symbols.
Field Summary | |
---|---|
static java.lang.String |
BAD_CHAR_ERROR
Bad characters in password key. |
static java.lang.String |
TOO_LONG_ERROR
Too long error key. |
static java.lang.String |
TOO_SHORT_ERROR
Too short error key. |
Fields inherited from class com.gridsystems.config.tools.TextVerifier |
---|
support |
Constructor Summary | |
---|---|
PasswordVerifier(ErrorSupport support,
int minLength,
int maxLength)
Creates an instance. |
Method Summary | |
---|---|
void |
cleanErrors()
Removes from the error support manager the list of errors of this verifier. |
boolean |
verify(java.lang.String text)
Validates a text string. |
Methods inherited from class com.gridsystems.config.tools.TextVerifier |
---|
updateError, verify |
Methods inherited from class javax.swing.InputVerifier |
---|
shouldYieldFocus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TOO_SHORT_ERROR
public static final java.lang.String TOO_LONG_ERROR
public static final java.lang.String BAD_CHAR_ERROR
Constructor Detail |
---|
public PasswordVerifier(ErrorSupport support, int minLength, int maxLength)
support
- The ErrorSupport instanceminLength
- Password minimum lengthmaxLength
- Password maximum lengthMethod Detail |
---|
public boolean verify(java.lang.String text)
verify
in class TextVerifier
text
- The string to validate
public void cleanErrors()
TextVerifier
This method will be used on field deactivation.
cleanErrors
in class TextVerifier
TextVerifier.cleanErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |