|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.security.auth.spi.JResourceLoginModule
public class JResourceLoginModule
Define a login module for the authentication by using one of the JOnAS resource Datasource, LDAP or file. This LoginModule delegates to the Server the authentication.
Constructor Summary | |
---|---|
JResourceLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
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 JResourceLoginModule()
Method Detail |
---|
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize
in interface 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 LoginException
login
in interface LoginModule
LoginException
- if the authentication failspublic boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
- if the commit failspublic boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
- if the abort failspublic boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
- if the logout fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |