public final class SimpleAuthenticationHandler extends AuthenticationHandler
AuthenticationHandler
:
Modifier and Type | Field and Description |
---|---|
static int |
ORDER_SIMPLE_HANDLER
Order used by the SimpleAuthenticationHandler
|
static java.lang.String |
REVISION |
channel, GENERIC_BAD_AUTHENTICATION_MSG
Modifier and Type | Method and Description |
---|---|
static Member |
getAuthenticatedMember(java.lang.String login,
java.lang.String password)
Returns the member corresponding to the given login / password by checking
directly into existing Member.
|
static SimpleAuthenticationHandler |
getInstance() |
void |
loadProperties()
This method will be called by the AuthenticationManager each time the
Channel properties are loaded/reloaded.
|
void |
login(AuthenticationContext ctxt)
Authenticate a member.
|
void |
logout(AuthenticationContext ctxt)
This methods is called when users logout from JCMS.
|
public static final java.lang.String REVISION
public static final int ORDER_SIMPLE_HANDLER
public static final SimpleAuthenticationHandler getInstance()
public void loadProperties()
AuthenticationHandler
loadProperties
in class AuthenticationHandler
public void login(AuthenticationContext ctxt) throws java.io.IOException
AuthenticationHandler
AuthenticationContext
object (request, response, login.. etc) AuthenticationContext.setLoggedMember(com.jalios.jcms.Member)
AuthenticationContext.doChain()
,AuthenticationContext
.login
in class AuthenticationHandler
ctxt
- the AuthenticationContext
used for this loginjava.io.IOException
public void logout(AuthenticationContext ctxt) throws java.io.IOException
AuthenticationHandler
logout
in class AuthenticationHandler
ctxt
- the AuthenticationContext
used for this loginjava.io.IOException
public static final Member getAuthenticatedMember(java.lang.String login, java.lang.String password)
login
- member's loginpassword
- member's passwordCopyright © 2001-2010 Jalios SA. All Rights Reserved.