public final class LibrarySession extends AuthenticatedWebSession
clientInfo, SESSION_ATTRIBUTE_NAME
Modifier | Constructor and Description |
---|---|
protected |
LibrarySession(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.
|
Roles |
getRoles() |
User |
getUser() |
void |
invalidate()
Call signOut() and remove the logon data from where ever they have been persisted (e.g.
|
void |
setUser(User user) |
get, isSignedIn, signIn, signIn, signOut
generateNewSessionId, getClientInfo, newBrowserInfoPage
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, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
protected LibrarySession(Request request)
request
- The current request objectpublic final boolean authenticate(String username, String password)
authenticate
in class AuthenticatedWebSession
username
- The usernamepassword
- The passwordpublic User getUser()
public void setUser(User user)
user
- New userpublic void invalidate()
AuthenticatedWebSession
invalidate
in class AuthenticatedWebSession
Session.invalidate()
public Roles getRoles()
getRoles
in class AbstractAuthenticatedWebSession
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.