Class KeycloakIdentity
- java.lang.Object
- 
- org.keycloak.authorization.common.KeycloakIdentity
 
- 
- All Implemented Interfaces:
- Identity
 
 public class KeycloakIdentity extends Object implements Identity - Author:
- Pedro Igor
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected AccessTokenaccessTokenprotected Attributesattributesprotected KeycloakSessionkeycloakSessionprotected RealmModelrealm
 - 
Constructor SummaryConstructors Constructor Description KeycloakIdentity(KeycloakSession keycloakSession)KeycloakIdentity(KeycloakSession keycloakSession, IDToken token)KeycloakIdentity(AccessToken accessToken, KeycloakSession keycloakSession)KeycloakIdentity(IDToken token, KeycloakSession keycloakSession, RealmModel realm)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokengetAccessToken()AttributesgetAttributes()Returns the attributes or claims associated with this identity.StringgetId()Returns the unique identifier of this identity.booleanisResourceServer()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authorization.identity.IdentityhasClientRole, hasOneClientRole, hasRealmRole
 
- 
 
- 
- 
- 
Field Detail- 
accessTokenprotected final AccessToken accessToken 
 - 
realmprotected final RealmModel realm 
 - 
keycloakSessionprotected final KeycloakSession keycloakSession 
 - 
attributesprotected final Attributes attributes 
 
- 
 - 
Constructor Detail- 
KeycloakIdentitypublic KeycloakIdentity(KeycloakSession keycloakSession) 
 - 
KeycloakIdentitypublic KeycloakIdentity(KeycloakSession keycloakSession, IDToken token) 
 - 
KeycloakIdentitypublic KeycloakIdentity(IDToken token, KeycloakSession keycloakSession, RealmModel realm) 
 - 
KeycloakIdentitypublic KeycloakIdentity(AccessToken accessToken, KeycloakSession keycloakSession) 
 
- 
 - 
Method Detail- 
getIdpublic String getId() Description copied from interface:IdentityReturns the unique identifier of this identity.
 - 
getAttributespublic Attributes getAttributes() Description 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
 
 - 
getAccessTokenpublic AccessToken getAccessToken() 
 - 
isResourceServerpublic boolean isResourceServer() 
 
- 
 
-