Class DynamicClientUpdatedContext
java.lang.Object
org.keycloak.services.clientpolicy.context.DynamicClientUpdatedContext
- All Implemented Interfaces:
ClientPolicyContext
,ClientCRUDContext
-
Constructor Summary
ConstructorDescriptionDynamicClientUpdatedContext
(KeycloakSession session, ClientModel updatedClient, JsonWebToken token, RealmModel realm) -
Method Summary
Modifier and TypeMethodDescriptionreturnsUserModel
of the authenticated client.returnsUserModel
of the authenticated user.getEvent()
returnsClientPolicyEvent
of client policy related events.returnsClientModel
of the existing client to be updated/read/updated/deleted.getToken()
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister clientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.services.clientpolicy.context.ClientCRUDContext
getProposedClientRepresentation
-
Constructor Details
-
DynamicClientUpdatedContext
public DynamicClientUpdatedContext(KeycloakSession session, ClientModel updatedClient, JsonWebToken token, RealmModel realm)
-
-
Method Details
-
getEvent
Description copied from interface:ClientPolicyContext
returnsClientPolicyEvent
of client policy related events.- Returns:
ClientPolicyEvent
-
getTargetClient
Description copied from interface:ClientCRUDContext
returnsClientModel
of the existing client to be updated/read/updated/deleted. on REGISTER event, it returns null.- Returns:
ClientModel
-
getAuthenticatedClient
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated client.- Specified by:
getAuthenticatedClient
in interfaceClientCRUDContext
- Returns:
UserModel
-
getAuthenticatedUser
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated user.- Specified by:
getAuthenticatedUser
in interfaceClientCRUDContext
- Returns:
UserModel
-
getToken
Description copied from interface:ClientCRUDContext
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister client- Specified by:
getToken
in interfaceClientCRUDContext
- Returns:
JsonWebToken
-