Class SyncopeEnduserSession
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.syncope.client.enduser.SyncopeEnduserSession
- All Implemented Interfaces:
Serializable,BaseSession,IEventSink,IFeedbackContributor,IMetadataContext<Serializable,,Session> IClusterable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SyncopeAnonymousClientprotected SyncopeClientprotected final SyncopeClientFactoryBeanprotected Stringprotected OffsetDateTimeprotected static final Loggerprotected UserTOFields inherited from class org.apache.wicket.Session
clientInfo, SESSION_ATTRIBUTE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String jwt) booleanauthenticate(String username, String password) voidcleanup()void<T> Future<T> static SyncopeEnduserSessionget()<T> TgetAnonymousService(Class<T> serviceClass) getJWT()getRoles()getSelfTO(boolean reload) <T> TgetService(Class<T> serviceClass) <T> TgetService(String etag, Class<T> serviceClass) voidprotected booleanprotected booleanbooleanprotected StringvoidExtract and localize (if translation available) the actual message from the given exception; then, report it viaSession.error(java.io.Serializable).protected voidrefreshAuth(String username) <T> voidresetClient(Class<T> service) voidvoidMethods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
isSignedIn, signIn, signIn, signOutMethods inherited from class org.apache.wicket.protocol.http.WebSession
generateNewSessionId, getClientInfo, newBrowserInfoPageMethods inherited from class org.apache.wicket.Session
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, isRtlLanguage, isRtlLocale, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.client.ui.commons.BaseSession
getSupportedLocales
-
Field Details
-
LOG
-
clientFactory
-
services
-
domain
-
client
-
anonymousClient
-
selfTO
-
lastReauth
-
-
Constructor Details
-
SyncopeEnduserSession
-
-
Method Details
-
get
-
isReauthExpired
public boolean isReauthExpired() -
setLastReauth
public void setLastReauth() -
clearLastReauth
public void clearLastReauth() -
message
-
onException
Extract and localize (if translation available) the actual message from the given exception; then, report it viaSession.error(java.io.Serializable).- Specified by:
onExceptionin interfaceBaseSession- Parameters:
e- raised exception- See Also:
-
getMediaType
-
execute
- Specified by:
executein interfaceBaseSession
-
setDomain
- Specified by:
setDomainin interfaceBaseSession
-
getDomain
- Specified by:
getDomainin interfaceBaseSession
-
getJWT
- Specified by:
getJWTin interfaceBaseSession
-
getRoles
- Specified by:
getRolesin classAbstractAuthenticatedWebSession
-
getPlatformInfo
-
authenticate
- Specified by:
authenticatein classAuthenticatedWebSession
-
authenticate
-
refreshAuth
-
isAuthenticated
protected boolean isAuthenticated() -
isMustChangePassword
protected boolean isMustChangePassword() -
cleanup
public void cleanup() -
invalidate
public void invalidate()- Overrides:
invalidatein classAuthenticatedWebSession
-
getSelfTO
-
getSelfTO
-
getAnonymousClient
- Specified by:
getAnonymousClientin interfaceBaseSession
-
getAnonymousService
- Specified by:
getAnonymousServicein interfaceBaseSession
-
getService
- Specified by:
getServicein interfaceBaseSession
-
getService
- Specified by:
getServicein interfaceBaseSession
-
resetClient
- Specified by:
resetClientin interfaceBaseSession
-
getDateFormat
- Specified by:
getDateFormatin interfaceBaseSession
-