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 Identitypublic boolean hasRealmRole(String roleName)
hasRealmRole in interface Identitypublic boolean hasClientRole(String clientId, String roleName)
hasClientRole in interface IdentityCopyright © 2018 JBoss by Red Hat. All rights reserved.