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.Loggerlog
-
Constructor Summary
Constructors Constructor Description ProxyLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancommit()voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)booleanlogin()Perform the login.booleanlogout()
-
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initializein interfaceLoginModule
-
login
public boolean login() throws LoginExceptionPerform 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:
loginin interfaceLoginModule- Throws:
LoginException
-
commit
public boolean commit() throws LoginException- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
public boolean abort() throws LoginException- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
logout
public boolean logout() throws LoginException- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
-