|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
java.util.List |
getCredentialList(java.lang.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(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.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 javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public final boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
public final 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
- callbackHandler
- sharedState
- options
- public final boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.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 javax.security.auth.spi.LoginModule
public final java.util.List getCredentialList(java.lang.String credentials)
credentials
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |