Class IdmApiClientService
java.lang.Object
org.forgerock.openig.fapi.apiclient.service.idm.IdmApiClientService
- All Implemented Interfaces:
ApiClientService
ApiClientService implementation which manages ApiClient data in IDM.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHeaplet for creatingIdmApiClientServiceinstances. -
Method Summary
Modifier and TypeMethodDescriptioncreate(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates an ApiClient in IDM.Deletes an ApiClient in IDM.Retrieves an ApiClient from IDM.update(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates an ApiClient in IDM.
-
Method Details
-
create
public Promise<ApiClient,ApiClientServiceException> create(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates an ApiClient in IDM.- Specified by:
createin interfaceApiClientService- Parameters:
oAuth2ClientId- the OAuth2.0 client_id of the clientsoftwareStatement- the software statement the client used in their DCR requestcontext- the current context within which the operation is being performed- Returns:
- a Promise with the created ApiClient as the result or an ApiClientServiceException if the create operation fails
-
get
Retrieves an ApiClient from IDM.- Specified by:
getin interfaceApiClientService- Parameters:
oAuth2ClientId- the OAuth2.0 client_id of the clientcontext- the current context within which the operation is being performed- Returns:
- a Promise with the retrieved ApiClient as the result or an ApiClientServiceException if the get operation fails
-
update
public Promise<ApiClient,ApiClientServiceException> update(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates an ApiClient in IDM.- Specified by:
updatein interfaceApiClientService- Parameters:
oAuth2ClientId- the OAuth2.0 client_id of the clientsoftwareStatement- the software statement the client used in their DCR requestcontext- the current context within which the operation is being performed- Returns:
- a Promise with the updated ApiClient as the result or an ApiClientServiceException if the update operation fails
-
delete
Deletes an ApiClient in IDM.This is a soft delete, the ApiClient's deleted field is set to true by sending an IDM patch request.
- Specified by:
deletein interfaceApiClientService- Parameters:
oAuth2ClientId- String the apiClientId to deletecontext- the current context within which the operation is being performed- Returns:
- Promise with either the deleted ApiClient as the result or an ApiClientServiceException if the delete operation fails
-