Class KeycloakIdentity
java.lang.Object
org.keycloak.authorization.common.KeycloakIdentity
- All Implemented Interfaces:
Identity
- Author:
- Pedro Igor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenprotected final Attributesprotected final KeycloakSessionprotected final RealmModel -
Constructor Summary
ConstructorsConstructorDescriptionKeycloakIdentity(KeycloakSession keycloakSession) KeycloakIdentity(KeycloakSession keycloakSession, IDToken token) KeycloakIdentity(AccessToken accessToken, KeycloakSession keycloakSession) KeycloakIdentity(AccessToken accessToken, KeycloakSession keycloakSession, RealmModel realm) KeycloakIdentity(IDToken token, KeycloakSession keycloakSession, RealmModel realm) -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes or claims associated with this identity.getId()Returns the unique identifier of this identity.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authorization.identity.Identity
hasClientRole, hasOneClientRole, hasRealmRole
-
Field Details
-
accessToken
-
realm
-
keycloakSession
-
attributes
-
-
Constructor Details
-
KeycloakIdentity
-
KeycloakIdentity
-
KeycloakIdentity
-
KeycloakIdentity
-
KeycloakIdentity
-
-
Method Details
-
getId
Description copied from interface:IdentityReturns the unique identifier of this identity. -
getAttributes
Description copied from interface:IdentityReturns the attributes or claims associated with this identity.- Specified by:
getAttributesin interfaceIdentity- Returns:
- the attributes or claims associated with this identity
-
getAccessToken
-
isResourceServer
public boolean isResourceServer()
-