public class DefaultAuthenticationStrategy extends Object implements IAuthenticationStrategy
Constructor and Description |
---|
DefaultAuthenticationStrategy(String cookieKey)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected CookieUtils |
getCookieUtils()
Make sure you always return a valid CookieUtils
|
protected ICrypt |
getCrypt() |
String[] |
load()
If "rememberMe" is enabled, than load login name and password from the persistence storage
(e.g.
|
void |
remove()
When the user logs out (session invalidation), than remove username and password from the
persistence store
|
void |
save(String username,
String password)
If "rememberMe" is enabled and login was successful, than store username and password in the
persistence store (e.g.
|
public DefaultAuthenticationStrategy(String cookieKey)
cookieKey
- The name of the cookieprotected CookieUtils getCookieUtils()
protected ICrypt getCrypt()
public String[] load()
IAuthenticationStrategy
load
in interface IAuthenticationStrategy
IAuthenticationStrategy.load()
public void save(String username, String password)
IAuthenticationStrategy
save
in interface IAuthenticationStrategy
IAuthenticationStrategy.save(java.lang.String,
java.lang.String)
public void remove()
IAuthenticationStrategy
remove
in interface IAuthenticationStrategy
IAuthenticationStrategy.remove()
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.