DLESE Tools
v1.6.0

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

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.FileLogin
All Implemented Interfaces:
LoginModule

public class FileLogin
extends SimpleLogin

Login Module that authenticates against a password stored in a password file.


Field Summary
 
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
FileLogin()
           
 
Method Summary
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
          Initialize this login module using password file obtained from login config
protected  Vector validateUser(String username, char[] password)
          loads pwdFile before validating User
 
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
 

Constructor Detail

FileLogin

public FileLogin()
Method Detail

validateUser

protected Vector validateUser(String username,
                              char[] password)
                       throws LoginException
loads pwdFile before validating User

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)
Initialize this login module using password file obtained from login config

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

DLESE Tools
v1.6.0