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.Attributes
getAttributes()
String
getId()
boolean
hasClientRole(String clientId, String roleName)
boolean
hasOneClientRole(String clientId, String... roleNames)
boolean
hasRealmRole(String roleName)
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.keycloak.authorization.identity.Identity
-
getAttributes
public org.keycloak.authorization.attribute.Attributes getAttributes()
- Specified by:
getAttributes
in interfaceorg.keycloak.authorization.identity.Identity
-
hasRealmRole
public boolean hasRealmRole(String roleName)
- Specified by:
hasRealmRole
in interfaceorg.keycloak.authorization.identity.Identity
-
hasOneClientRole
public boolean hasOneClientRole(String clientId, String... roleNames)
- Specified by:
hasOneClientRole
in interfaceorg.keycloak.authorization.identity.Identity
-
-