com.tagish.auth
Class DBLogin
java.lang.Object
|
+--com.tagish.auth.BasicLogin
|
+--com.tagish.auth.SimpleLogin
|
+--com.tagish.auth.DBLogin
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
- public class DBLogin
- extends SimpleLogin
Simple database based authentication module.
- Version:
- 1.0.3
- Author:
- Andy Armstrong, andy@tagish.com
Method Summary |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
Map sharedState,
Map options)
Module initialization. |
protected Vector |
validateUser(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbDriver
protected String dbDriver
dbURL
protected String dbURL
dbUser
protected String dbUser
dbPassword
protected String dbPassword
userTable
protected String userTable
roleMapTable
protected String roleMapTable
roleTable
protected String roleTable
where
protected String where
DBLogin
public DBLogin()
validateUser
protected Vector validateUser(String username,
char[] password)
throws javax.security.auth.login.LoginException
- Description copied from class:
SimpleLogin
- Validate a user's credentials and either throw a LoginException (if
validation fails) or return a Vector of Principals if validation
succeeds.
- Overrides:
validateUser
in class SimpleLogin
- Following copied from class:
com.tagish.auth.SimpleLogin
- Parameters:
username
- The usernamepassword
- The password- Returns:
- a Vector of Principals that apply for this user.
- Throws:
javax.security.auth.login.LoginException
- if the login fails.
initialize
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
Map sharedState,
Map options)
- Description copied from class:
BasicLogin
- Module initialization.
- Overrides:
initialize
in class BasicLogin