Package org.jboss.security.auth.spi
Class ProxyLoginModule
- java.lang.Object
-
- org.jboss.security.auth.spi.ProxyLoginModule
-
- All Implemented Interfaces:
LoginModule
public class ProxyLoginModule extends Object implements LoginModule
A proxy LoginModule that loads a delegate LoginModule using the current thread context class loader. The purpose of this module is to work around the current JAAS class loader limitation that requires LoginModules to be on the classpath. Some LoginModules use core JBoss classes that would have to be moved into the jboss-jaas.jar and packaging becomes a mess. Instead, these LoginModules are left in the jbosssx.jar and the ProxyLoginModule is used to bootstrap the non-classpath LoginModule.- Version:
- $Revision$
- Author:
- Scott.Stark@jboss.org
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.logging.Logger
log
-
Constructor Summary
Constructors Constructor Description ProxyLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
boolean
commit()
void
initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
boolean
login()
Perform the login.boolean
logout()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initialize
in interfaceLoginModule
-
login
public boolean login() throws LoginException
Perform the login. If either the moduleName option was not specified or the module could not be loaded in initalize(), this method throws a LoginException.- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
commit
public boolean commit() throws LoginException
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
-