org.apache.karaf.jaas.boot
Class ProxyLoginModule
java.lang.Object
org.apache.karaf.jaas.boot.ProxyLoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
public class ProxyLoginModule
- extends java.lang.Object
- implements javax.security.auth.spi.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.
Method Summary |
boolean |
abort()
|
boolean |
commit()
|
static void |
init(org.osgi.framework.BundleContext context)
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options)
|
boolean |
login()
|
boolean |
logout()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_MODULE
public static final java.lang.String PROPERTY_MODULE
- See Also:
- Constant Field Values
PROPERTY_BUNDLE
public static final java.lang.String PROPERTY_BUNDLE
- See Also:
- Constant Field Values
ProxyLoginModule
public ProxyLoginModule()
init
public static void init(org.osgi.framework.BundleContext context)
initialize
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options)
- Specified by:
initialize
in interface javax.security.auth.spi.LoginModule
login
public boolean login()
throws javax.security.auth.login.LoginException
- Specified by:
login
in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
commit
public boolean commit()
throws javax.security.auth.login.LoginException
- Specified by:
commit
in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
abort
public boolean abort()
throws javax.security.auth.login.LoginException
- Specified by:
abort
in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
logout
public boolean logout()
throws javax.security.auth.login.LoginException
- Specified by:
logout
in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.