DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.login
Class DBLogin

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.login.BasicLogin
      extended by org.dlese.dpc.schemedit.security.login.SimpleLogin
          extended by org.dlese.dpc.schemedit.security.login.DBLogin
All Implemented Interfaces:
LoginModule

public class DBLogin
extends SimpleLogin

Simple database based authentication module.

Version:
1.0.3
Author:
Andy Armstrong, andy@tagish.com

Field Summary
protected  String dbDriver
           
protected  String dbPassword
           
protected  String dbURL
           
protected  String dbUser
           
protected  String roleMapTable
           
protected  String roleTable
           
protected  String userTable
           
protected  String where
           
 
Fields inherited from class org.dlese.dpc.schemedit.security.login.SimpleLogin
commitSucceeded, pending, principals
 
Fields inherited from class org.dlese.dpc.schemedit.security.login.BasicLogin
callbackHandler, options, sharedState, subject
 
Constructor Summary
DBLogin()
           
 
Method Summary
 void initialize(Subject subject, 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 org.dlese.dpc.schemedit.security.login.SimpleLogin
abort, commit, getLoginModuleName, login, logout, putPrincipal, showSharedState
 
Methods inherited from class org.dlese.dpc.schemedit.security.login.BasicLogin
getOption, getOption, getOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DBLogin

public DBLogin()
Method Detail

validateUser

protected Vector validateUser(String username,
                              char[] password)
                       throws 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.

Specified by:
validateUser in class SimpleLogin
Parameters:
username - The username
password - The password
Returns:
a Vector of Principals that apply for this user.
Throws:
LoginException - if the login fails.

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map sharedState,
                       Map options)
Description copied from class: BasicLogin
Module initialization.

Specified by:
initialize in interface LoginModule
Overrides:
initialize in class BasicLogin

DLESE Tools
v1.6.0