public final class SignInSession extends AuthenticatedWebSession
clientInfo, SESSION_ATTRIBUTE_NAME
Modifier | Constructor and Description |
---|---|
protected |
SignInSession(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() |
String |
getUser() |
void |
setUser(String user) |
get, invalidate, isSignedIn, signIn, signIn, signOut
getClientInfo, newBrowserInfoPage
bind, 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, warn
protected SignInSession(Request request)
request
- public final boolean authenticate(String username, String password)
authenticate
in class AuthenticatedWebSession
username
- The usernamepassword
- The passwordpublic String getUser()
public void setUser(String user)
user
- New userpublic Roles getRoles()
getRoles
in class AbstractAuthenticatedWebSession
org.apache.wicket.authentication.AuthenticatedWebSession#getRoles()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.