Class KeycloakIdentity
java.lang.Object
org.keycloak.authorization.common.KeycloakIdentity
- All Implemented Interfaces:
Identity
- Author:
- Pedro Igor
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessToken
protected final Attributes
protected final KeycloakSession
protected final RealmModel
-
Constructor Summary
ConstructorDescriptionKeycloakIdentity
(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.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Identity
Returns the unique identifier of this identity. -
getAttributes
Description copied from interface:Identity
Returns the attributes or claims associated with this identity.- Specified by:
getAttributes
in interfaceIdentity
- Returns:
- the attributes or claims associated with this identity
-
getAccessToken
-
isResourceServer
public boolean isResourceServer()
-