Package org.keycloak.models
Interface ClientSessionContext
- All Known Implementing Classes:
DefaultClientSessionContext
public interface ClientSessionContext
Request-scoped context object
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescription<T> T
getAttribute
(String attribute, Class<T> clazz) Returns client scopes as a stream.Returns protocol mappers as a stream.Returns all roles including composite ones as a stream.void
setAttribute
(String name, Object value)
-
Method Details
-
getClientSession
AuthenticatedClientSessionModel getClientSession() -
getClientScopeIds
-
getClientScopesStream
Stream<ClientScopeModel> getClientScopesStream()Returns client scopes as a stream.- Returns:
- Stream of client scopes. Never returns
null
.
-
getRolesStream
Returns all roles including composite ones as a stream.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
getProtocolMappersStream
Stream<ProtocolMapperModel> getProtocolMappersStream()Returns protocol mappers as a stream.- Returns:
- Stream of protocol mappers. Never returns
null
.
-
getScopeString
String getScopeString() -
setAttribute
-
getAttribute
-
getAuthorizationRequestContext
AuthorizationRequestContext getAuthorizationRequestContext()
-