|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Session org.apache.wicket.protocol.http.WebSession org.apache.wicket.authentication.AuthenticatedWebSession
public abstract class AuthenticatedWebSession
Basic authenticated web session. Subclasses must provide a method that authenticates the session based on a username and password, and a method implementation that gets the Roles
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 | |
---|---|
AuthenticatedWebSession(AuthenticatedWebApplication application,
Request request)
Deprecated. Use AuthenticatedWebSession(Request) |
|
AuthenticatedWebSession(Request request)
Construct. |
Method Summary | |
---|---|
abstract boolean |
authenticate(String username,
String password)
Authenticates this session using the given username and password |
static AuthenticatedWebSession |
get()
|
abstract Roles |
getRoles()
|
boolean |
isSignedIn()
|
protected void |
signIn(boolean value)
Cookie based logins (remember me) may not rely on putting username and password into the cookie but something else that safely identifies the user. |
boolean |
signIn(String username,
String password)
Signs user in by authenticating them with a username and password |
void |
signOut()
Sign the user out. |
Methods inherited from class org.apache.wicket.protocol.http.WebSession |
---|
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, isCurrentRequestValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public AuthenticatedWebSession(AuthenticatedWebApplication application, Request request)
AuthenticatedWebSession(Request)
application
- The web applicationrequest
- The current request objectpublic AuthenticatedWebSession(Request request)
request
- The current request objectMethod Detail |
---|
public static AuthenticatedWebSession get()
public abstract boolean authenticate(String username, String password)
username
- The usernamepassword
- The password
public abstract Roles getRoles()
public final boolean isSignedIn()
public final boolean signIn(String username, String password)
username
- The usernamepassword
- The password
public void signOut()
protected final void signIn(boolean value)
value
- authenticate(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |