Package org.cyclos.impl.access
Class OidcSessionData
- java.lang.Object
-
- org.cyclos.impl.access.AbstractSessionData
-
- org.cyclos.impl.access.UserSessionData
-
- org.cyclos.impl.access.OidcSessionData
-
- All Implemented Interfaces:
RoleContainer,DelegatingUserPrincipal,SessionData,UserPrincipal
public class OidcSessionData extends UserSessionData
AnUserSessionDatausing an OAuth2 / OpenID Connect access token
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.impl.access.AbstractSessionData
AbstractSessionData.SessionDataChannelAccessAccessor
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.access.AbstractSessionData
requestData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LongdoGetLoggedBasicUserId()protected UserPrincipaldoGetUserPrincipal()protected booleandoHasExpiredPassword()StringgetAccessChannelName()Returns the internal name of the original channel (i.e the channel used to access Cyclos) .OidcAccessTokengetAccessToken()Returns the OpenID Connect / OAuth2 access token for this sessionUserAuthVOgetAuthenticatedUser()Returns the user authentication data, or null if noneStringgetChannelName()Returns the internal name of the current channel.PingetPin()Returns thePinused for this session only if the user was authenticated using such mechanism.booleanhasExpiredSecondaryPassword()protected ProductsAccessorresolveProductsAccessor(ProductsHandler productsHandler)-
Methods inherited from class org.cyclos.impl.access.UserSessionData
checkConsistency, doGetConfigurationId, doGetPreferredLocales, doGetProducts, doGetSubjectId, doHasPendingAgreements, doHasPendingSecondaryPassword, doHasPermission, fallbackToDefaultLocales, getAccessClient, getAccessibleBasicGroups, getAccountType, getBasicUser, getChannelAccessAccessor, getCustomFieldValue, getGroup, getLoggedBasicUser, getMobilePhone, getPermissions, getPrincipal, getPrincipalType, getRoles, getToken, getTrustedDevice, getUserPrincipal, hasExpiredPassword, hasPendingAgreements, hasPengingSecondaryPassword, hasRequiredValue, isAdmin, isAdminOf, isAliasOperator, isBroker, isBrokerOf, isGlobalAdmin, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isOwnerOf, isRestrictedOperator, isVisible, manages, relatesTo, returnPendingPasswords
-
Methods inherited from class org.cyclos.impl.access.AbstractSessionData
bean, doGetConfigurationAccessor, getAccessChannel, getApplicationContext, getChannel, getChannelConfiguration, getChannelSettingsAccessor, getConfiguration, getConfigurationEntity, getFailedActionHandler, getIdentityProvider, getLoggedOperator, getLoggedUser, getNetwork, getProducts, getRawEntityManagerHandler, getRemoteAddress, getRequestData, getSession, getSubjectId, hasPermission, isGlobalAdminInNetwork, isGuest, isManagerOf, isMultiNetworkAdminInGlobalMode, isScript, isSelf, isSystem, isTrusted, isUserManager, resolveNetworkId, runAsSystem, runAsSystem, shouldCheckRemoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.access.DelegatingUserPrincipal
getDelegate
-
Methods inherited from interface org.cyclos.impl.access.SessionData
hasPermission, isRest
-
-
-
-
Method Detail
-
getAccessChannelName
public String getAccessChannelName()
Description copied from interface:SessionDataReturns the internal name of the original channel (i.e the channel used to access Cyclos) . Must be accessible outside transactions.
-
getAccessToken
public OidcAccessToken getAccessToken()
Description copied from interface:SessionDataReturns the OpenID Connect / OAuth2 access token for this session- Specified by:
getAccessTokenin interfaceSessionData- Overrides:
getAccessTokenin classAbstractSessionData
-
getAuthenticatedUser
public UserAuthVO getAuthenticatedUser()
Description copied from interface:SessionDataReturns the user authentication data, or null if none- Specified by:
getAuthenticatedUserin interfaceSessionData- Overrides:
getAuthenticatedUserin classUserSessionData
-
getChannelName
public String getChannelName()
Description copied from interface:SessionDataReturns the internal name of the current channel. Must be accessible outside transactions.
-
getPin
public Pin getPin()
Description copied from interface:SessionDataReturns thePinused for this session only if the user was authenticated using such mechanism.- Specified by:
getPinin interfaceSessionData- Overrides:
getPinin classAbstractSessionData
-
hasExpiredSecondaryPassword
public boolean hasExpiredSecondaryPassword()
- Overrides:
hasExpiredSecondaryPasswordin classUserSessionData
-
doGetLoggedBasicUserId
protected Long doGetLoggedBasicUserId()
- Specified by:
doGetLoggedBasicUserIdin classUserSessionData
-
doGetUserPrincipal
protected UserPrincipal doGetUserPrincipal()
- Specified by:
doGetUserPrincipalin classUserSessionData
-
doHasExpiredPassword
protected boolean doHasExpiredPassword()
- Overrides:
doHasExpiredPasswordin classUserSessionData
-
resolveProductsAccessor
protected ProductsAccessor resolveProductsAccessor(ProductsHandler productsHandler)
- Overrides:
resolveProductsAccessorin classUserSessionData
-
-