|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.examples.signin.SignInSession
public final class SignInSession
Session class for signin example. Holds and authenticates users.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.Session |
|---|
Session.IPageMapVisitor, Session.PageMapAccessMetaData |
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Session |
|---|
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
protected |
SignInSession(WebApplication application,
Request request)
Constructor |
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Checks the given username and password, returning a User object if if the username and password identify a valid user. |
java.lang.String |
getUser()
|
boolean |
isSignedIn()
|
void |
setUser(java.lang.String user)
|
| Methods inherited from class org.apache.wicket.protocol.http.WebSession |
|---|
cleanupFeedbackMessages, isCurrentRequestValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SignInSession(WebApplication application,
Request request)
application - The applicationrequest - | Method Detail |
|---|
public final boolean authenticate(java.lang.String username,
java.lang.String password)
username - The usernamepassword - The password
public boolean isSignedIn()
public java.lang.String getUser()
public void setUser(java.lang.String user)
user - New user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||