|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.apache.wicket.examples.authentication3.MyAuthenticatedWebSession
public class MyAuthenticatedWebSession
Authenticated session subclass. Note that it is derived from AuthenticatedWebSession which is defined in the auth-role module.
Field Summary |
---|
Fields inherited from class org.apache.wicket.Session |
---|
clientInfo, SESSION_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
MyAuthenticatedWebSession(Request request)
Construct. |
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Note: You must subclass WebSession and implement your own. |
Roles |
getRoles()
|
Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession |
---|
get, invalidate, isSignedIn, signIn, signIn, signOut |
Methods inherited from class org.apache.wicket.protocol.http.WebSession |
---|
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, getClientInfo, newBrowserInfoPage |
Methods inherited from class org.apache.wicket.Session |
---|
bind, clear, debug, detach, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isCurrentRequestValid, isSessionInvalidated, isTemporary, nextPageId, nextSequenceValue, onEvent, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MyAuthenticatedWebSession(Request request)
request
- The current request objectMethod Detail |
---|
public boolean authenticate(java.lang.String username, java.lang.String password)
WebSession
authenticate
in class WebSession
username
- The usernamepassword
- The password
org.apache.wicket.authentication.AuthenticatedWebSession#authenticate(java.lang.String,
java.lang.String)
public Roles getRoles()
getRoles
in class AbstractAuthenticatedWebSession
org.apache.wicket.authentication.AuthenticatedWebSession#getRoles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |