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