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