|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.authentication.strategy.DefaultAuthenticationStrategy
public class DefaultAuthenticationStrategy
Wicket's default implementation of an authentication strategy. It'll concatenate username and password, encrypt it and put it into one Cookie.
| Constructor Summary | |
|---|---|
DefaultAuthenticationStrategy(String cookieKey)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuthenticationStrategy(String cookieKey)
cookieKey - The name of the cookie| Method Detail |
|---|
protected CookieUtils getCookieUtils()
protected ICrypt getCrypt()
public String[] load()
IAuthenticationStrategy
load in interface IAuthenticationStrategyIAuthenticationStrategy.load()
public void save(String username,
String password)
IAuthenticationStrategy
save in interface IAuthenticationStrategyIAuthenticationStrategy.save(java.lang.String,
java.lang.String)public void remove()
IAuthenticationStrategy
remove in interface IAuthenticationStrategyIAuthenticationStrategy.remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||