public class ClientModelIdentity extends Object implements Identity
Modifier and Type | Field and Description |
---|---|
protected ClientModel |
client |
protected RealmModel |
realm |
protected UserModel |
serviceAccount |
Constructor and Description |
---|
ClientModelIdentity(KeycloakSession session,
ClientModel client) |
Modifier and Type | Method and Description |
---|---|
Attributes |
getAttributes() |
String |
getId() |
boolean |
hasClientRole(String clientId,
String roleName) |
boolean |
hasRealmRole(String roleName) |
protected RealmModel realm
protected ClientModel client
protected UserModel serviceAccount
public ClientModelIdentity(KeycloakSession session, ClientModel client)
public Attributes getAttributes()
getAttributes
in interface Identity
public boolean hasRealmRole(String roleName)
hasRealmRole
in interface Identity
public boolean hasClientRole(String clientId, String roleName)
hasClientRole
in interface Identity
Copyright © 2021 JBoss by Red Hat. All rights reserved.