Class DelegatingLoginModule

java.lang.Object
com.zfabrik.servletjsp.security.DelegatingLoginModule
All Implemented Interfaces:
LoginModule

public class DelegatingLoginModule extends Object implements 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"
   ;
 };