public class SyncopeConsoleSession extends AuthenticatedWebSession
Modifier and Type | Class and Description |
---|---|
static class |
SyncopeConsoleSession.Error |
Modifier and Type | Field and Description |
---|---|
protected SyncopeClient |
anonymousClient |
protected Map<String,Set<String>> |
auth |
protected SyncopeClient |
client |
protected SyncopeClientFactoryBean |
clientFactory |
protected String |
delegatedBy |
protected List<String> |
delegations |
protected String |
domain |
protected ThreadPoolTaskExecutor |
executor |
protected static org.slf4j.Logger |
LOG |
protected PlatformInfo |
platformInfo |
protected Roles |
roles |
protected UserTO |
selfTO |
protected Map<Class<?>,Object> |
services |
protected SystemInfo |
systemInfo |
clientInfo, SESSION_ATTRIBUTE_NAME
Constructor and Description |
---|
SyncopeConsoleSession(Request request) |
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 static final org.slf4j.Logger LOG
protected final SyncopeClientFactoryBean clientFactory
protected final SyncopeClient anonymousClient
protected final PlatformInfo platformInfo
protected final SystemInfo systemInfo
protected final ThreadPoolTaskExecutor executor
protected String domain
protected SyncopeClient client
protected UserTO selfTO
protected String delegatedBy
protected Roles roles
public SyncopeConsoleSession(Request request)
public static SyncopeConsoleSession get()
protected String message(SyncopeClientException sce)
public void onException(Exception e)
Session.error(java.io.Serializable)
.e
- raised exceptionRestClientExceptionMapper
public javax.ws.rs.core.MediaType getMediaType()
public SyncopeClient getAnonymousClient()
public void execute(Runnable command)
public PlatformInfo getPlatformInfo()
public SystemInfo getSystemInfo()
public void setDomain(String domain)
public String getDomain()
public String getJWT()
public boolean authenticate(String username, String password)
authenticate
in class AuthenticatedWebSession
public boolean authenticate(String jwt)
public void cleanup()
public void invalidate()
invalidate
in class AuthenticatedWebSession
public UserTO getSelfTO()
public Roles getRoles()
getRoles
in class AbstractAuthenticatedWebSession
public String getDelegatedBy()
public void setDelegatedBy(String delegatedBy)
public void refreshAuth(String username)
protected <T> T getCachedService(Class<T> serviceClass)
public <T> T getService(Class<T> serviceClass)
public BatchRequest batch()
public <T> void resetClient(Class<T> service)
public FastDateFormat getDateFormat()
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.