Class ClientSecretRotationContext
java.lang.Object
org.keycloak.services.clientpolicy.context.AdminClientUpdateContext
org.keycloak.services.clientpolicy.context.ClientSecretRotationContext
- All Implemented Interfaces:
ClientPolicyContext
,ClientCRUDContext
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientSecretRotationContext
(ClientRepresentation proposedClientRepresentation, ClientModel targetClient, String currentSecret) -
Method Summary
Modifier and TypeMethodDescriptionreturnsUserModel
of the authenticated client.returnsUserModel
of the authenticated user.getEvent()
returnsClientPolicyEvent
of client policy related events.getToken()
returnsJsonWebToken
of the token accompanied with the request to register/read/update/unregister clientboolean
Methods inherited from class org.keycloak.services.clientpolicy.context.AdminClientUpdateContext
getProposedClientRepresentation, getTargetClient
-
Field Details
-
adminAuth
-
-
Constructor Details
-
ClientSecretRotationContext
public ClientSecretRotationContext(ClientRepresentation proposedClientRepresentation, ClientModel targetClient, String currentSecret)
-
-
Method Details
-
getEvent
Description copied from interface:ClientPolicyContext
returnsClientPolicyEvent
of client policy related events.- Specified by:
getEvent
in interfaceClientPolicyContext
- Overrides:
getEvent
in classAdminClientUpdateContext
- Returns:
ClientPolicyEvent
-
getCurrentSecret
-
isForceRotation
public boolean isForceRotation() -
getAuthenticatedClient
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated client.- Specified by:
getAuthenticatedClient
in interfaceClientCRUDContext
- Returns:
UserModel
-
getAuthenticatedUser
Description copied from interface:ClientCRUDContext
returnsUserModel
of the authenticated user.- Specified by:
getAuthenticatedUser
in interfaceClientCRUDContext
- Returns:
UserModel
-
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
-