wicket.authentication.example
Class MyAuthenticatedWebSession

java.lang.Object
  extended by wicket.Session
      extended by wicket.protocol.http.WebSession
          extended by wicket.authentication.AuthenticatedWebSession
              extended by wicket.authentication.example.MyAuthenticatedWebSession
All Implemented Interfaces:
java.io.Serializable

public class MyAuthenticatedWebSession
extends wicket.authentication.AuthenticatedWebSession

Authenticated session subclass

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.Session
wicket.Session.IPageMapVisitor
 
Field Summary
 
Fields inherited from class wicket.Session
SESSION_ATTRIBUTE_NAME
 
Constructor Summary
MyAuthenticatedWebSession(wicket.authentication.AuthenticatedWebApplication application)
          Construct.
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
           
 wicket.authorization.strategies.role.Roles getRoles()
           
 
Methods inherited from class wicket.authentication.AuthenticatedWebSession
get, isSignedIn, signIn
 
Methods inherited from class wicket.protocol.http.WebSession
attach, detach, getRequestCycleFactory, initForRequest, invalidate, invalidateNow, update
 
Methods inherited from class wicket.Session
clear, createAutoPageMap, createAutoPageMapName, dirty, error, exists, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getClientInfo, getConverter, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, info, init, newPageMap, newRequestCycle, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, 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(wicket.authentication.AuthenticatedWebApplication application)
Construct.

Parameters:
application - The application
Method Detail

authenticate

public boolean authenticate(java.lang.String username,
                            java.lang.String password)
Specified by:
authenticate in class wicket.authentication.AuthenticatedWebSession
See Also:
AuthenticatedWebSession.authenticate(java.lang.String, java.lang.String)

getRoles

public wicket.authorization.strategies.role.Roles getRoles()
Specified by:
getRoles in class wicket.authentication.AuthenticatedWebSession
See Also:
AuthenticatedWebSession.getRoles()


Copyright © 2005-2007 Wicket developers. All Rights Reserved.