|
||||||||||
| 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.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 |
|---|
org.apache.wicket.Session.IPageMapVisitor, org.apache.wicket.Session.PageMapAccessMetaData |
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Session |
|---|
MESSAGES_FOR_COMPONENTS, PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
AuthenticatedWebSession(AuthenticatedWebApplication application,
org.apache.wicket.Request request)
Construct. |
|
| Method Summary | |
|---|---|
abstract boolean |
authenticate(java.lang.String username,
java.lang.String password)
Authenticates this session using the given username and password |
static AuthenticatedWebSession |
get()
|
abstract Roles |
getRoles()
|
boolean |
isSignedIn()
|
boolean |
signIn(java.lang.String username,
java.lang.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 |
|---|
isCurrentRequestValid |
| Methods inherited from class org.apache.wicket.Session |
|---|
attach, bind, cleanupFeedbackMessages, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, update, visitPageMaps, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticatedWebSession(AuthenticatedWebApplication application,
org.apache.wicket.Request request)
application - The web applicationrequest - The current request objectresponse - | Method Detail |
|---|
public static AuthenticatedWebSession get()
public abstract boolean authenticate(java.lang.String username,
java.lang.String password)
username - The usernamepassword - The password
public abstract Roles getRoles()
public final boolean isSignedIn()
public final boolean signIn(java.lang.String username,
java.lang.String password)
username - The usernamepassword - The password
public void signOut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||