public class AdminClientUpdateContext extends Object
| Constructor and Description |
|---|
AdminClientUpdateContext(ClientRepresentation proposedClientRepresentation,
ClientModel targetClient,
AdminAuth adminAuth) |
| Modifier and Type | Method and Description |
|---|---|
ClientModel |
getAuthenticatedClient()
returns
UserModel of the authenticated client. |
UserModel |
getAuthenticatedUser()
returns
UserModel of the authenticated user. |
ClientPolicyEvent |
getEvent()
returns
ClientPolicyEvent of client policy related events. |
ClientRepresentation |
getProposedClientRepresentation()
returns
ClientRepresentation for creating the new client or updating the existing client. |
ClientModel |
getTargetClient()
returns
ClientModel of the existing client to be updated/read/updated/deleted. |
JsonWebToken |
getToken()
returns
JsonWebToken of the token accompanied with the request to register/read/update/unregister client |
protected final AdminAuth adminAuth
public AdminClientUpdateContext(ClientRepresentation proposedClientRepresentation, ClientModel targetClient, AdminAuth adminAuth)
public ClientPolicyEvent getEvent()
ClientPolicyContextClientPolicyEvent of client policy related events.ClientPolicyEventpublic ClientRepresentation getProposedClientRepresentation()
ClientCRUDContextClientRepresentation for creating the new client or updating the existing client.ClientRepresentationpublic ClientModel getTargetClient()
ClientCRUDContextClientModel of the existing client to be updated/read/updated/deleted.
on REGISTER event, it returns null.ClientModelpublic ClientModel getAuthenticatedClient()
ClientCRUDContextUserModel of the authenticated client.getAuthenticatedClient in interface ClientCRUDContextUserModelpublic UserModel getAuthenticatedUser()
ClientCRUDContextUserModel of the authenticated user.getAuthenticatedUser in interface ClientCRUDContextUserModelpublic JsonWebToken getToken()
ClientCRUDContextJsonWebToken of the token accompanied with the request to register/read/update/unregister clientgetToken in interface ClientCRUDContextJsonWebTokenCopyright © 2021 JBoss by Red Hat. All rights reserved.