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