org.apache.karaf.jaas.boot
Class ProxyLoginModule

java.lang.Object
  extended by 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
static String PROPERTY_BUNDLE
           
static String PROPERTY_MODULE
           
 
Constructor Summary
ProxyLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
static void init(org.osgi.framework.BundleContext context)
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ProxyLoginModule

public ProxyLoginModule()
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:
initialize in interface LoginModule

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
Specified by:
commit in interface LoginModule
Throws:
LoginException

abort

public boolean abort()
              throws LoginException
Specified by:
abort in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Throws:
LoginException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.