Class ClientModelIdentity
java.lang.Object
org.keycloak.authorization.common.ClientModelIdentity
- All Implemented Interfaces:
Identity
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClientModelprotected final RealmModelprotected final UserModelprotected final org.keycloak.representations.AccessToken -
Constructor Summary
ConstructorsConstructorDescriptionClientModelIdentity(KeycloakSession session, ClientModel client) ClientModelIdentity(KeycloakSession session, ClientModel client, org.keycloak.representations.AccessToken token) -
Method Summary
Modifier and TypeMethodDescriptiongetId()booleanhasClientRole(String clientId, String roleName) booleanhasOneClientRole(String clientId, String... roleNames) booleanhasRealmRole(String roleName)
-
Field Details
-
realm
-
client
-
serviceAccount
-
token
protected final org.keycloak.representations.AccessToken token
-
-
Constructor Details
-
ClientModelIdentity
-
ClientModelIdentity
public ClientModelIdentity(KeycloakSession session, ClientModel client, org.keycloak.representations.AccessToken token)
-
-
Method Details
-
getId
-
getAttributes
- Specified by:
getAttributesin interfaceIdentity
-
hasRealmRole
- Specified by:
hasRealmRolein interfaceIdentity
-
hasClientRole
- Specified by:
hasClientRolein interfaceIdentity
-
hasOneClientRole
- Specified by:
hasOneClientRolein interfaceIdentity
-