Package org.keycloak.services.util
Class DefaultClientSessionContext
- java.lang.Object
- 
- org.keycloak.services.util.DefaultClientSessionContext
 
- 
- All Implemented Interfaces:
- ClientSessionContext
 
 public class DefaultClientSessionContext extends Object implements ClientSessionContext Not thread safe. It's per-request object- Author:
- Marek Posolda
 
- 
- 
Method Summary
 
- 
- 
- 
Method Detail- 
fromClientSessionScopeParameterpublic static DefaultClientSessionContext fromClientSessionScopeParameter(AuthenticatedClientSessionModel clientSession, KeycloakSession session) Useful if we want to "re-compute" client scopes based on the scope parameter
 - 
fromClientSessionAndScopeParameterpublic static DefaultClientSessionContext fromClientSessionAndScopeParameter(AuthenticatedClientSessionModel clientSession, String scopeParam, KeycloakSession session) 
 - 
fromClientSessionAndClientScopeIdspublic static DefaultClientSessionContext fromClientSessionAndClientScopeIds(AuthenticatedClientSessionModel clientSession, Set<String> clientScopeIds, KeycloakSession session) 
 - 
getClientSessionpublic AuthenticatedClientSessionModel getClientSession() - Specified by:
- getClientSessionin interface- ClientSessionContext
 
 - 
getClientScopeIdspublic Set<String> getClientScopeIds() - Specified by:
- getClientScopeIdsin interface- ClientSessionContext
 
 - 
getClientScopesStreampublic Stream<ClientScopeModel> getClientScopesStream() Description copied from interface:ClientSessionContextReturns client scopes as a stream.- Specified by:
- getClientScopesStreamin interface- ClientSessionContext
- Returns:
- Stream of client scopes. Never returns null.
 
 - 
getRolesStreampublic Stream<RoleModel> getRolesStream() Description copied from interface:ClientSessionContextReturns all roles including composite ones as a stream.- Specified by:
- getRolesStreamin interface- ClientSessionContext
- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
getProtocolMappersStreampublic Stream<ProtocolMapperModel> getProtocolMappersStream() Description copied from interface:ClientSessionContextReturns protocol mappers as a stream.- Specified by:
- getProtocolMappersStreamin interface- ClientSessionContext
- Returns:
- Stream of protocol mappers. Never returns null.
 
 - 
getScopeStringpublic String getScopeString() - Specified by:
- getScopeStringin interface- ClientSessionContext
 
 - 
setAttributepublic void setAttribute(String name, Object value) - Specified by:
- setAttributein interface- ClientSessionContext
 
 - 
getAttributepublic <T> T getAttribute(String name, Class<T> clazz) - Specified by:
- getAttributein interface- ClientSessionContext
 
 - 
getAuthorizationRequestContextpublic AuthorizationRequestContext getAuthorizationRequestContext() - Specified by:
- getAuthorizationRequestContextin interface- ClientSessionContext
 
 
- 
 
-