org.apache.wicket.examples.authentication
Class MyAuthenticatedWebSession

java.lang.Object
  extended by org.apache.wicket.Session
      extended by org.apache.wicket.protocol.http.WebSession
          extended by org.apache.wicket.authentication.AuthenticatedWebSession
              extended by org.apache.wicket.examples.authentication.MyAuthenticatedWebSession
All Implemented Interfaces:
java.io.Serializable, IClusterable

public class MyAuthenticatedWebSession
extends AuthenticatedWebSession

Authenticated session subclass

Author:
Jonathan Locke
See Also:
Serialized Form

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
MyAuthenticatedWebSession(Request request)
          Construct.
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
          Authenticates this session using the given username and password
 Roles getRoles()
           
 
Methods inherited from class org.apache.wicket.authentication.AuthenticatedWebSession
get, isSignedIn, signIn, signOut
 
Methods inherited from class org.apache.wicket.protocol.http.WebSession
cleanupFeedbackMessages, isCurrentRequestValid
 
Methods inherited from class org.apache.wicket.Session
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, 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, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, visitPageMaps, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyAuthenticatedWebSession

public MyAuthenticatedWebSession(Request request)
Construct.

Parameters:
request - The current request object
Method Detail

authenticate

public boolean authenticate(java.lang.String username,
                            java.lang.String password)
Description copied from class: AuthenticatedWebSession
Authenticates this session using the given username and password

Specified by:
authenticate in class AuthenticatedWebSession
Parameters:
username - The username
password - The password
Returns:
True if the user was authenticated successfully
See Also:
AuthenticatedWebSession.authenticate(java.lang.String, java.lang.String)

getRoles

public Roles getRoles()
Specified by:
getRoles in class AuthenticatedWebSession
Returns:
Get the roles that this session can play
See Also:
AuthenticatedWebSession.getRoles()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.