Interface ClientCRUDContext
- All Superinterfaces:
ClientPolicyContext
- All Known Implementing Classes:
AdminClientRegisterContext,AdminClientRegisteredContext,AdminClientUnregisterContext,AdminClientUpdateContext,AdminClientUpdatedContext,AdminClientViewContext,ClientSecretRotationContext,DynamicClientRegisterContext,DynamicClientRegisteredContext,DynamicClientUnregisterContext,DynamicClientUpdateContext,DynamicClientUpdatedContext,DynamicClientViewContext
Represents the context in the request to register/read/update/unregister client by Dynamic Client Registration or Admin REST API.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClientModelreturnsUserModelof the authenticated client.default UserModelreturnsUserModelof the authenticated user.default ClientRepresentationreturnsClientRepresentationfor creating the new client or updating the existing client.default ClientModelreturnsClientModelof the existing client to be updated/read/updated/deleted.default JsonWebTokengetToken()returnsJsonWebTokenof the token accompanied with the request to register/read/update/unregister clientMethods inherited from interface org.keycloak.services.clientpolicy.ClientPolicyContext
getEvent
-
Method Details
-
getProposedClientRepresentation
returnsClientRepresentationfor creating the new client or updating the existing client.- Returns:
ClientRepresentation
-
getTargetClient
returnsClientModelof the existing client to be updated/read/updated/deleted. on REGISTER event, it returns null.- Returns:
ClientModel
-
getAuthenticatedUser
returnsUserModelof the authenticated user.- Returns:
UserModel
-
getAuthenticatedClient
returnsUserModelof the authenticated client.- Returns:
UserModel
-
getToken
returnsJsonWebTokenof the token accompanied with the request to register/read/update/unregister client- Returns:
JsonWebToken
-