Package com.zfabrik.servletjsp.security
Class DelegatingLoginModule
java.lang.Object
com.zfabrik.servletjsp.security.DelegatingLoginModule
- All Implemented Interfaces:
LoginModule
This login module implementation delegates to a login module component - usually of
component type
javax.security.auth.spi.LoginModule
-
that provides the actual login module implementation as .
The purpose of this login module is to de-couple the jetty server classpath from the login module implementation class path.
The login module component must be specified as configuration property
com.zfabrik.security.componentName
.
A typical JAAS configuration using this login module looks like this:
user_realm { com.zfabrik.servletjsp.security.DelegatingLoginModule sufficient com.zfabrik.security.componentName="test.loginModule/module" userName="willi" password="meier" roles="master,loser" ; };
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DelegatingLoginModule
public DelegatingLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)- Specified by:
initialize
in interfaceLoginModule
-
abort
- Specified by:
abort
in interfaceLoginModule
- Throws:
LoginException
-
commit
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
login
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
logout
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-