Class ServletContainerAuthenticatedWebSession
- java.lang.Object
-
- org.apache.wicket.Session
-
- org.apache.wicket.protocol.http.WebSession
-
- org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
-
- org.apache.wicket.authroles.authentication.AuthenticatedWebSession
-
- org.wicketstuff.wicket.servlet3.auth.ServletContainerAuthenticatedWebSession
-
- All Implemented Interfaces:
Serializable,IEventSink,IFeedbackContributor,IMetadataContext<Serializable,Session>,IClusterable
public class ServletContainerAuthenticatedWebSession extends AuthenticatedWebSession
Implementation class for AuthenticatedWebSession that uses servlet 3 request to authenticate user.- Author:
- jsarman
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.Session
clientInfo, SESSION_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description ServletContainerAuthenticatedWebSession(Request request)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(String username, String password)static ServletContainerAuthenticatedWebSessionget()RolesgetRoles()static StringgetUserName()Convenience method to retrieve authenticated users id.voidsignOut()-
Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
invalidate, isSignedIn, signIn, signIn
-
Methods inherited from class org.apache.wicket.protocol.http.WebSession
generateNewSessionId, getClientInfo, newBrowserInfoPage
-
Methods inherited from class org.apache.wicket.Session
bind, changeSessionId, clear, debug, detach, dirty, dirty, endRequest, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isRtlLanguage, isRtlLocale, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
-
-
-
-
Constructor Detail
-
ServletContainerAuthenticatedWebSession
public ServletContainerAuthenticatedWebSession(Request request)
-
-
Method Detail
-
get
public static ServletContainerAuthenticatedWebSession get()
- Returns:
- Current authenticated web session
-
getUserName
public static String getUserName()
Convenience method to retrieve authenticated users id.- Returns:
- name member of Principal object in servlet 3 request
-
getRoles
public final Roles getRoles()
- Specified by:
getRolesin classAbstractAuthenticatedWebSession
-
signOut
public final void signOut()
- Overrides:
signOutin classAuthenticatedWebSession
-
authenticate
public boolean authenticate(String username, String password)
- Specified by:
authenticatein classAuthenticatedWebSession
-
-