org.apache.geronimo.security.jaas.client
Class JaasLoginCoordinator
java.lang.Object
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator
- All Implemented Interfaces:
- LoginModule
public class JaasLoginCoordinator
- extends Object
- implements LoginModule
A LoginModule implementation which connects to a Geronimo server under
the covers, and uses Geronimo realms to resolve the login. It handles a
mix of client-side and server-side login modules. It treats any client
side module as something it should manage and execute, while a server side
login module would be managed and executed by the Geronimo server.
Note that this can actually be run from within a Geronimo server, in which
case the client/server distinction is somewhat less important, and the
communication is optimized by avoiding network traffic.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTION_HOST
public static final String OPTION_HOST
- See Also:
- Constant Field Values
OPTION_PORT
public static final String OPTION_PORT
- See Also:
- Constant Field Values
OPTION_KERNEL
public static final String OPTION_KERNEL
- See Also:
- Constant Field Values
OPTION_REALM
public static final String OPTION_REALM
- See Also:
- Constant Field Values
OPTION_SERVICENAME
public static final String OPTION_SERVICENAME
- See Also:
- Constant Field Values
OPTION_SERVICE_INSTANCE
public static final String OPTION_SERVICE_INSTANCE
- See Also:
- Constant Field Values
JaasLoginCoordinator
public JaasLoginCoordinator()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map 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 © 2006 Apache Software Foundation. All Rights Reserved.