public class RoleResolveUtil extends Object
Constructor and Description |
---|
RoleResolveUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,AccessToken.Access> |
getAllResolvedClientRoles(KeycloakSession session,
ClientSessionContext clientSessionCtx)
Object (but can be empty map) containing all the user's client roles of all clients.
|
static AccessToken.Access |
getResolvedClientRoles(KeycloakSession session,
ClientSessionContext clientSessionCtx,
String clientId,
boolean createIfMissing)
Object (possibly null) containing all the user's client roles of client specified by clientId.
|
static AccessToken.Access |
getResolvedRealmRoles(KeycloakSession session,
ClientSessionContext clientSessionCtx,
boolean createIfMissing)
Object (possibly null) containing all the user's realm roles.
|
public static AccessToken.Access getResolvedRealmRoles(KeycloakSession session, ClientSessionContext clientSessionCtx, boolean createIfMissing)
session
- clientSessionCtx
- createIfMissing
- public static AccessToken.Access getResolvedClientRoles(KeycloakSession session, ClientSessionContext clientSessionCtx, String clientId, boolean createIfMissing)
session
- clientSessionCtx
- clientId
- createIfMissing
- public static Map<String,AccessToken.Access> getAllResolvedClientRoles(KeycloakSession session, ClientSessionContext clientSessionCtx)
session
- clientSessionCtx
- Copyright © 2021 JBoss by Red Hat. All rights reserved.