Interface ApiClientService
- All Known Implementing Classes:
IdmApiClientService
public interface ApiClientService
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates anApiClientusing aSoftwareStatementprovides as part of the DCR request.Deletes anApiClient.Gets anApiClient.update(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates anApiClientusing DCR data.
-
Method Details
-
create
Promise<ApiClient,ApiClientServiceException> create(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates anApiClientusing aSoftwareStatementprovides as part of the DCR request.- Parameters:
context- the current context within which the operation is being performedoAuth2ClientId- the OAuth2.0 client_id from the DCR responsesoftwareStatement- the SoftwareStatement used in the DCR request used to create the OAuth2.0 client- Returns:
- Promise which either returns the created
ApiClientor anApiClientServiceExceptionif an error occurs.
-
get
Gets anApiClient.- Parameters:
context- the current context within which the operation is being performedoAuth2ClientId- the OAuth2.0 client_id of theApiClient- Returns:
- Promise which either returns the ApiClient or an
ApiClientServiceExceptionif an error occurs.
-
update
Promise<ApiClient,ApiClientServiceException> update(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates anApiClientusing DCR data.- Parameters:
context- the current context within which the operation is being performedoAuth2ClientId- the OAuth2.0 client_id from the DCR responsesoftwareStatement- the SoftwareStatement used in the DCR request used to create the OAuth2.0 client- Returns:
- Promise which either returns the updated
ApiClientor anApiClientServiceExceptionif an error occurs.
-
delete
Deletes anApiClient.- Parameters:
context- the current context within which the operation is being performedoAuth2ClientId- the OAuth2.0 client_id of theApiClient- Returns:
- Promise which either returns the deleted
ApiClientor anApiClientServiceExceptionif an error occurs.
-