Class UserModelIdentity
- java.lang.Object
-
- org.keycloak.authorization.common.UserModelIdentity
-
- All Implemented Interfaces:
org.keycloak.authorization.identity.Identity
public class UserModelIdentity extends Object implements org.keycloak.authorization.identity.Identity
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description UserModelIdentity(org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.keycloak.authorization.attribute.AttributesgetAttributes()StringgetId()booleanhasClientRole(String clientId, String roleName)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
-
-