Class ClientModelIdentity
- java.lang.Object
-
- org.keycloak.authorization.common.ClientModelIdentity
-
- All Implemented Interfaces:
org.keycloak.authorization.identity.Identity
public class ClientModelIdentity extends Object implements org.keycloak.authorization.identity.Identity
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected org.keycloak.models.ClientModelclientprotected org.keycloak.models.RealmModelrealmprotected org.keycloak.models.UserModelserviceAccount
-
Constructor Summary
Constructors Constructor Description ClientModelIdentity(org.keycloak.models.KeycloakSession session, org.keycloak.models.ClientModel client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.keycloak.authorization.attribute.AttributesgetAttributes()StringgetId()booleanhasClientRole(String clientId, String roleName)booleanhasOneClientRole(String clientId, String... roleNames)booleanhasRealmRole(String roleName)
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.keycloak.authorization.identity.Identity
-
getAttributes
public org.keycloak.authorization.attribute.Attributes getAttributes()
- Specified by:
getAttributesin interfaceorg.keycloak.authorization.identity.Identity
-
hasRealmRole
public boolean hasRealmRole(String roleName)
- Specified by:
hasRealmRolein interfaceorg.keycloak.authorization.identity.Identity
-
hasClientRole
public boolean hasClientRole(String clientId, String roleName)
- Specified by:
hasClientRolein interfaceorg.keycloak.authorization.identity.Identity
-
-