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