public class DefaultLoginModule extends Object implements LoginModule
Constructor and Description |
---|
DefaultLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Abort if authentication fails
|
boolean |
commit()
Commit if authentication succeeds, otherwise return false
|
List<String> |
getCredentialList(String creds)
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
|
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
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.