public class DBLogin extends SimpleLogin
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dbDriver |
protected java.lang.String |
dbPassword |
protected java.lang.String |
dbURL |
protected java.lang.String |
dbUser |
protected java.lang.String |
roleMapTable |
protected java.lang.String |
roleTable |
protected java.lang.String |
userTable |
protected java.lang.String |
where |
commitSucceeded, pending, principals
callbackHandler, options, sharedState, subject
Constructor and Description |
---|
DBLogin() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Module initialization.
|
protected java.util.Vector |
validateUser(java.lang.String username,
char[] password)
Validate a user's credentials and either throw a LoginException (if
validation fails) or return a Vector of Principals if validation succeeds.
|
abort, commit, getLoginModuleName, login, logout, putPrincipal, showSharedState
getOption, getOption, getOption
protected java.lang.String dbDriver
protected java.lang.String dbURL
protected java.lang.String dbUser
protected java.lang.String dbPassword
protected java.lang.String userTable
protected java.lang.String roleMapTable
protected java.lang.String roleTable
protected java.lang.String where
protected java.util.Vector validateUser(java.lang.String username, char[] password) throws javax.security.auth.login.LoginException
SimpleLogin
validateUser
in class SimpleLogin
username
- The usernamepassword
- The passwordjavax.security.auth.login.LoginException
- if the login fails.public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
BasicLogin
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class BasicLogin