Class AdminClientUpdateContext
- java.lang.Object
-
- org.keycloak.services.clientpolicy.context.AdminClientUpdateContext
-
- All Implemented Interfaces:
ClientPolicyContext
,ClientCRUDContext
- Direct Known Subclasses:
ClientSecretRotationContext
public class AdminClientUpdateContext extends Object
-
-
Constructor Summary
Constructors Constructor Description AdminClientUpdateContext(ClientRepresentation proposedClientRepresentation, ClientModel targetClient, AdminAuth adminAuth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientModel
getAuthenticatedClient()
returnsUserModel
of the authenticated client.UserModel
getAuthenticatedUser()
returnsUserModel
of the authenticated user.ClientPolicyEvent
getEvent()
returnsClientPolicyEvent
of client policy related events.ClientRepresentation
getProposedClientRepresentation()
returnsClientRepresentation
for creating the new client or updating the existing client.ClientModel
getTargetClient()
returnsClientModel
of the existing client to be updated/read/updated/deleted.JsonWebToken
getToken()
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister client
-
-
-
Field Detail
-
adminAuth
protected final AdminAuth adminAuth
-
-
Constructor Detail
-
AdminClientUpdateContext
public AdminClientUpdateContext(ClientRepresentation proposedClientRepresentation, ClientModel targetClient, AdminAuth adminAuth)
-
-
Method Detail
-
getEvent
public ClientPolicyEvent getEvent()
Description copied from interface:ClientPolicyContext
returnsClientPolicyEvent
of client policy related events.- Returns:
ClientPolicyEvent
-
getProposedClientRepresentation
public ClientRepresentation getProposedClientRepresentation()
Description copied from interface:ClientCRUDContext
returnsClientRepresentation
for creating the new client or updating the existing client.- Returns:
ClientRepresentation
-
getTargetClient
public ClientModel 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
public ClientModel getAuthenticatedClient()
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated client.- Specified by:
getAuthenticatedClient
in interfaceClientCRUDContext
- Returns:
UserModel
-
getAuthenticatedUser
public UserModel getAuthenticatedUser()
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated user.- Specified by:
getAuthenticatedUser
in interfaceClientCRUDContext
- Returns:
UserModel
-
getToken
public JsonWebToken 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
-
-