TorqueBox 3.1.2

org.torquebox.security.auth
Class TorqueBoxLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended by org.torquebox.security.auth.TorqueBoxLoginModule
All Implemented Interfaces:
LoginModule

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

A simple login module used by torquebox-appname security domains. Usernames and passwords are specified in torquebox.yml

Author:
lanceball

Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
TorqueBoxLoginModule()
           
 
Method Summary
protected  Group[] getRoleSets()
           
protected  String getUsersPassword()
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
           
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, login, safeClose, setValidateError, validatePassword
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueBoxLoginModule

public TorqueBoxLoginModule()
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map<String,?> sharedState,
                       Map<String,?> options)
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

getRoleSets

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

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.