|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.module.jaas.loginmodule.DefaultLoginModule
public class DefaultLoginModule
This is the Default Login Module for the Mule Jaas Authentication. It extends Jaas' own LoginModule interface.
Constructor Summary | |
---|---|
DefaultLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
Abort if authentication fails |
boolean |
commit()
Commit if authentication succeeds, otherwise return false |
List |
getCredentialList(String credentials)
This method parses the credentials string and populates the credentials list against which the username and password submitted with the request will be checked |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Initialises the callbackHandler, the credentials and the credentials list |
boolean |
login()
This method attempts to login the user by checking his credentials against those of the authorised users. |
boolean |
logout()
Returns true when authentication succeeds or false when it fails |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLoginModule()
Method Detail |
---|
public final boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
public final boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public final void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize
in interface LoginModule
subject
- callbackHandler
- sharedState
- options
- public final boolean login() throws LoginException
login
in interface LoginModule
LoginException
- This is thrown either when there is no callback Handler
or else when the user fails to be authenticatedpublic final boolean logout()
logout
in interface LoginModule
public final List getCredentialList(String credentials)
credentials
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |