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 ClientModel
returnsUserModel
of the authenticated client.default UserModel
returnsUserModel
of the authenticated user.default ClientRepresentation
returnsClientRepresentation
for creating the new client or updating the existing client.default ClientModel
returnsClientModel
of the existing client to be updated/read/updated/deleted.default JsonWebToken
getToken()
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister clientMethods inherited from interface org.keycloak.services.clientpolicy.ClientPolicyContext
getEvent
-
Method Details
-
getProposedClientRepresentation
returnsClientRepresentation
for creating the new client or updating the existing client.- Returns:
ClientRepresentation
-
getTargetClient
returnsClientModel
of the existing client to be updated/read/updated/deleted. on REGISTER event, it returns null.- Returns:
ClientModel
-
getAuthenticatedUser
returnsUserModel
of the authenticated user.- Returns:
UserModel
-
getAuthenticatedClient
returnsUserModel
of the authenticated client.- Returns:
UserModel
-
getToken
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister client- Returns:
JsonWebToken
-