Class InputChecker
java.lang.Object
|
+--InputChecker
- public class InputChecker
- extends java.lang.Object
Static methods to verify certain user inputs are valid.
|
Method Summary |
static java.lang.String |
isInputMapOk(java.util.Map map)
Ensures the input map passed into the processor contains the correct entries and that
these entries contain valid values. |
static java.lang.String |
isLoginOk(java.lang.String userId,
java.lang.String password)
Checks to see if a Banner user id and password are "valid". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_ID_LENGTH
public static final int USER_ID_LENGTH
- See Also:
- Constant Field Values
PASSWORD_LENGTH
public static final int PASSWORD_LENGTH
- See Also:
- Constant Field Values
InputChecker
public InputChecker()
isLoginOk
public static java.lang.String isLoginOk(java.lang.String userId,
java.lang.String password)
- Checks to see if a Banner user id and password are "valid". This validation
only checks to see if the lengths of the strings are correct, nothing more. True
validation is done by Banner itself.
- Parameters:
userId - the user id to check.password - the password to check.
- Returns:
- a non-null user-friendly String if an error occurs, or null if everything was ok.
isInputMapOk
public static java.lang.String isInputMapOk(java.util.Map map)
throws java.sql.SQLException
- Ensures the input map passed into the processor contains the correct entries and that
these entries contain valid values.
- Parameters:
map - the map containing values to check prior to invoking the processor.
- Returns:
- a non-null user-friendly String if an error occurs, or null if everything was ok.
- Throws:
java.sql.SQLException - if an error occurs while connecting to the SAS database.