org.jspresso.framework.security.auth.spi
Class DatabaseLoginModule

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.DatabaseServerLoginModule
              extended by org.jspresso.framework.security.auth.spi.DatabaseLoginModule
All Implemented Interfaces:
LoginModule

public class DatabaseLoginModule
extends org.jboss.security.auth.spi.DatabaseServerLoginModule

An extended database login module to comlpement the user principal with custom values.

Version:
$LastChangedRevision$
Author:
Vincent Vandenschrick

Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.DatabaseServerLoginModule
dsJndiName, principalsQuery, rolesQuery, suspendResume
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
DatabaseLoginModule()
           
 
Method Summary
protected  String createPasswordHash(String username, String password, String digestOption)
          
 boolean login()
          Complement identity.
protected  boolean validatePassword(String inputPassword, String expectedPassword)
          
 
Methods inherited from class org.jboss.security.auth.spi.DatabaseServerLoginModule
convertRawPassword, getRoleSets, getUsersPassword, initialize
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, setValidateError
 
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

DatabaseLoginModule

public DatabaseLoginModule()
Method Detail

login

public boolean login()
              throws LoginException
Complement identity.

Specified by:
login in interface LoginModule
Overrides:
login in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
Throws:
LoginException

createPasswordHash

protected String createPasswordHash(String username,
                                    String password,
                                    String digestOption)
                             throws LoginException

Overrides:
createPasswordHash in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
Throws:
LoginException

validatePassword

protected boolean validatePassword(String inputPassword,
                                   String expectedPassword)

Overrides:
validatePassword in class org.jboss.security.auth.spi.UsernamePasswordLoginModule


Copyright © 2005-2012 Jspresso. All Rights Reserved.