Class ClientModelIdentity
java.lang.Object
org.keycloak.authorization.common.ClientModelIdentity
- All Implemented Interfaces:
- Identity
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the attributes or claims associated with this identity.getId()Returns the unique identifier of this identity.booleanhasClientRole(String clientId, String roleName) Indicates if this identity is granted with a client role with the givenroleName.booleanhasOneClientRole(String clientId, String... roleNames) Indicates if this identity is granted with a client role of one of the givenroleNames.booleanhasRealmRole(String roleName) Indicates if this identity is granted with a realm role with the givenroleName.
- 
Field Details- 
realm
- 
client
- 
serviceAccount
 
- 
- 
Constructor Details- 
ClientModelIdentity
 
- 
- 
Method Details- 
getIdDescription copied from interface:IdentityReturns the unique identifier of this identity.
- 
getAttributesDescription copied from interface:IdentityReturns the attributes or claims associated with this identity.- Specified by:
- getAttributesin interface- Identity
- Returns:
- the attributes or claims associated with this identity
 
- 
hasRealmRoleDescription copied from interface:IdentityIndicates if this identity is granted with a realm role with the givenroleName.- Specified by:
- hasRealmRolein interface- Identity
- Parameters:
- roleName- the name of the role
- Returns:
- true if the identity has the given role. Otherwise, it returns false.
 
- 
hasClientRoleDescription copied from interface:IdentityIndicates if this identity is granted with a client role with the givenroleName.- Specified by:
- hasClientRolein interface- Identity
- Parameters:
- clientId- the client id
- roleName- the name of the role
- Returns:
- true if the identity has the given role. Otherwise, it returns false.
 
- 
hasOneClientRoleDescription copied from interface:IdentityIndicates if this identity is granted with a client role of one of the givenroleNames.- Specified by:
- hasOneClientRolein interface- Identity
- Parameters:
- clientId- the client id
- roleNames- list
- Returns:
- true if the identity has any of the given roles. Otherwise, it returns false.
 
 
-