public final class LibrarySession
extends org.apache.wicket.authroles.authentication.AuthenticatedWebSession
| Modifier | Constructor and Description |
|---|---|
protected |
LibrarySession(org.apache.wicket.request.Request request)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password)
Checks the given username and password, returning a User object if if the username and
password identify a valid user.
|
org.apache.wicket.authroles.authorization.strategies.role.Roles |
getRoles() |
User |
getUser() |
void |
setUser(User user) |
void |
signOut() |
get, invalidate, isSignedIn, signIn, signIngetClientInfo, newBrowserInfoPagebind, clear, debug, detach, dirty, dirty, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnprotected LibrarySession(org.apache.wicket.request.Request request)
request - The current request objectpublic final boolean authenticate(String username, String password)
authenticate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSessionusername - The usernamepassword - The passwordpublic User getUser()
public void setUser(User user)
user - New userpublic void signOut()
signOut in class org.apache.wicket.authroles.authentication.AuthenticatedWebSessionAuthenticatedWebSession.signOut()public org.apache.wicket.authroles.authorization.strategies.role.Roles getRoles()
getRoles in class org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSessionAbstractAuthenticatedWebSession.getRoles()Copyright © 2017. All rights reserved.