org.equanda.test.login
Class LoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended by org.jboss.security.auth.spi.UsersRolesLoginModule
              extended by org.equanda.test.login.LoginModule
All Implemented Interfaces:
LoginModule

public class LoginModule
extends org.jboss.security.auth.spi.UsersRolesLoginModule


Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
LoginModule()
           
 
Method Summary
protected  LoginInfo getLogin(String user)
          Get LoginInfo object for the requested user.
protected  Group[] getRoleSets()
           
protected  String getUsersPassword()
           
 boolean login()
           
 
Methods inherited from class org.jboss.security.auth.spi.UsersRolesLoginModule
createRoles, createUsers, initialize, loadRoles, loadUsers, parseGroupMembers
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, setValidateError, validatePassword
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, commit, createGroup, createIdentity, getUseFirstPass, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginModule

public LoginModule()
Method Detail

getRoleSets

protected Group[] getRoleSets()
                       throws LoginException
Overrides:
getRoleSets in class org.jboss.security.auth.spi.UsersRolesLoginModule
Throws:
LoginException

getUsersPassword

protected String getUsersPassword()
Overrides:
getUsersPassword in class org.jboss.security.auth.spi.UsersRolesLoginModule

getLogin

protected LoginInfo getLogin(String user)
Get LoginInfo object for the requested user. Returns null when the requested user was not found

Parameters:
user - username
Returns:
LoginInfo object for the requested user

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Overrides:
login in class org.jboss.security.auth.spi.UsersRolesLoginModule
Throws:
LoginException


Copyright © 2007-2008. All Rights Reserved.