|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.authentication.AuthenticationHandler com.jalios.jcms.authentication.handlers.SimpleAuthenticationHandler
public final class SimpleAuthenticationHandler
Authenticate user based on the login/password of existing member in JCMS.
Current implementation of this AuthenticationHandler
:
Field Summary | |
---|---|
static int |
ORDER_SIMPLE_HANDLER
Order used by the SimpleAuthenticationHandler |
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.authentication.AuthenticationHandler |
---|
channel, GENERIC_BAD_AUTHENTICATION_MSG |
Method Summary | |
---|---|
static Member |
getAuthenticatedMember(String login,
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. You can use it to reload properties that might have been changed. This method is called during initialization of the AuthenticationManager |
void |
login(AuthenticationContext ctxt)
Authenticate a member. |
void |
logout(AuthenticationContext ctxt)
This methods is called when users logout from JCMS. |
Methods inherited from class com.jalios.jcms.authentication.AuthenticationHandler |
---|
compareTo, equals, getOrder, init, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final int ORDER_SIMPLE_HANDLER
Method Detail |
---|
public static final SimpleAuthenticationHandler getInstance()
public void loadProperties()
AuthenticationHandler
loadProperties
in class AuthenticationHandler
public void login(AuthenticationContext ctxt) throws 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 login
IOException
public void logout(AuthenticationContext ctxt) throws IOException
AuthenticationHandler
logout
in class AuthenticationHandler
ctxt
- the AuthenticationContext
used for this login
IOException
public static final Member getAuthenticatedMember(String login, String password)
login
- member's loginpassword
- member's password
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |