|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.security.auth.spi.RemoteLoginModule
public class RemoteLoginModule
This Remote login module is used to run a JAAS authentication on the remote side. This allows users to provide a simple LoginModule which run on the server side and to share this login module from the client side (in this case it use remotely the user login module)
Constructor Summary | |
---|---|
RemoteLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
protected JResourceRemote |
findRemoteResource(java.util.List resourceNames,
java.util.List userProviderURLs)
Gets a remote resource in order to ask a remote authentication. |
protected javax.naming.Context |
getInitialContext(java.lang.String providerURL)
Builds an Initial Context for the given providerURL |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Initialize this LoginModule. |
boolean |
login()
Method to authenticate a Subject (phase 1). |
boolean |
logout()
Method which logs out a Subject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteLoginModule()
Method Detail |
---|
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
subject
- the Subject to be authenticated.callbackHandler
- a CallbackHandler for communicating with the end
user (prompting for usernames and passwords, for example).sharedState
- state shared with other configured LoginModules.options
- options specified in the login Configuration for this
particular LoginModule.public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the authentication failsprotected JResourceRemote findRemoteResource(java.util.List resourceNames, java.util.List userProviderURLs) throws javax.security.auth.login.LoginException
resourceNames
- the names of the resources that should be in the registry.userProviderURLs
- the list of PROVIDER_URL to use (empty/null = default)
javax.security.auth.login.LoginException
- if no resources are available.protected javax.naming.Context getInitialContext(java.lang.String providerURL) throws javax.naming.NamingException
providerURL
- the given URL to use. If null, use the default setting
javax.naming.NamingException
- if no context can be builtpublic boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the commit failspublic boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the abort failspublic boolean logout() throws javax.security.auth.login.LoginException
logout
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the logout fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |