public class WaspSession
extends org.apache.wicket.protocol.http.WebSession
| Constructor and Description |
|---|
WaspSession(WaspApplication application,
org.apache.wicket.request.Request request) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
org.apache.wicket.authorization.IAuthorizationStrategy |
getAuthorizationStrategy()
Returns a session scoped WaspAuthorizationStrategy.
|
void |
invalidateNow()
Cleans up the WaspAuthorizationStrategy before killing this session.
|
boolean |
isUserAuthenticated()
Quick check if any user at all is currently authenticated.
|
void |
login(Object context)
Attempts to login with the current login info.
|
boolean |
logoff(Object context)
Attempts to log off the current user.
|
get, getClientInfo, invalidate, newBrowserInfoPagebind, cleanupFeedbackMessages, clear, debug, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, isCurrentRequestValid, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnpublic WaspSession(WaspApplication application, org.apache.wicket.request.Request request)
public org.apache.wicket.authorization.IAuthorizationStrategy getAuthorizationStrategy()
getAuthorizationStrategy in class org.apache.wicket.SessionSession.getAuthorizationStrategy()public void login(Object context) throws LoginException
context - any type of information required to loginLoginExceptionWaspAuthorizationStrategy.login(Object)public boolean logoff(Object context)
WaspAuthorizationStrategy should also do the same as it is not guaranteed that every
logoff comes from the session.context - the context to use for logging offWaspAuthorizationStrategy.logoff(Object)public boolean isUserAuthenticated()
public void invalidateNow()
invalidateNow in class org.apache.wicket.SessionSession.invalidateNow()public void detach()
detach in class org.apache.wicket.SessionSession.detach()Copyright © 2015. All rights reserved.