org.rhq.enterprise.server.core.jaas
Class JDBCPrincipalCheckLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended by org.rhq.enterprise.server.core.jaas.JDBCPrincipalCheckLoginModule
All Implemented Interfaces:
LoginModule

public class JDBCPrincipalCheckLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule

A JDBC login module that passes only if there is no principal in the database.


Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
JDBCPrincipalCheckLoginModule()
           
 
Method Summary
protected  Group[] getRoleSets()
           
protected  String getUsersPassword()
           
 void initialize(Subject subj, CallbackHandler handler, Map shared_state, Map opts)
           
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, login, 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

JDBCPrincipalCheckLoginModule

public JDBCPrincipalCheckLoginModule()
Method Detail

initialize

public void initialize(Subject subj,
                       CallbackHandler handler,
                       Map shared_state,
                       Map opts)
Specified by:
initialize in interface LoginModule
Overrides:
initialize in class org.jboss.security.auth.spi.UsernamePasswordLoginModule

getUsersPassword

protected String getUsersPassword()
                           throws LoginException
Specified by:
getUsersPassword in class org.jboss.security.auth.spi.UsernamePasswordLoginModule
Throws:
LoginException
See Also:
UsernamePasswordLoginModule.getUsersPassword()

getRoleSets

protected Group[] getRoleSets()
                       throws LoginException
Specified by:
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModule
Throws:
LoginException
See Also:
AbstractServerLoginModule.getRoleSets()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.