Interface InternalRotationClientService
public interface InternalRotationClientService
An internal service for managing Oauth2 clients
Used for background job in applinks to rotate client secrets without user context.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateClientEntity client) Creates aClientGets an existingClientremoveById(String id) Deletes aClientRevokes the client secret and id for the rotated client, by removing the values.rotateClient(String clientId) Rotate the client id and secret for the given client id.
-
Method Details
-
create
Creates aClient- Parameters:
client- the entity object for the client to create- Returns:
- the newly created entity
-
rotateClient
Rotate the client id and secret for the given client id.- Parameters:
clientId- the client id to rotate- Returns:
- the new client id and secret
- Since:
- 5.0.0
-
getById
Gets an existingClient- Parameters:
id- of the entity to return- Returns:
- The
Clientmatching the id or null
-
removeById
Deletes aClient- Parameters:
id- of the entity to delete
-
revokeRotatedClientSecret
Revokes the client secret and id for the rotated client, by removing the values. This is used to remove the old client id and secret pair.- Parameters:
id- used to identify the client which should have the rotated pair revoked.- Returns:
- The
Optionalof theClientmatching the id, or, if the id not found it will returnOptional.empty() - Since:
- 5.0.0
-