Package org.apache.karaf.jaas.boot
Class ProxyLoginModule
- java.lang.Object
-
- org.apache.karaf.jaas.boot.ProxyLoginModule
-
- All Implemented Interfaces:
LoginModule
public class ProxyLoginModule extends Object implements LoginModule
An OSGi proxy login module that should be used instead of a plain reference to a given login module. Two properties must be set, the name of the login module class and the bundle to be used to load it. This class must be available from all modules, so it has to be either in a fragment bundle attached to the system bundle or be made available through the boot delegation class path.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_BUNDLEstatic StringPROPERTY_MODULE
-
Constructor Summary
Constructors Constructor Description ProxyLoginModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancommit()static voidinit(org.osgi.framework.BundleContext context)voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)booleanlogin()booleanlogout()
-
-
-
Field Detail
-
PROPERTY_MODULE
public static final String PROPERTY_MODULE
- See Also:
- Constant Field Values
-
PROPERTY_BUNDLE
public static final String PROPERTY_BUNDLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init(org.osgi.framework.BundleContext context)
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
- Specified by:
initializein interfaceLoginModule
-
login
public boolean login() throws 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
-
-