Interface ApiClientService
- All Known Implementing Classes:
IdmApiClientService
public interface ApiClientService
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates anApiClient
using aSoftwareStatement
provides as part of the DCR request.Deletes anApiClient
.Gets anApiClient
.update
(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates anApiClient
using DCR data.
-
Method Details
-
create
Promise<ApiClient,ApiClientServiceException> create(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Creates anApiClient
using aSoftwareStatement
provides 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
ApiClient
or anApiClientServiceException
if 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
ApiClientServiceException
if an error occurs.
-
update
Promise<ApiClient,ApiClientServiceException> update(Context context, String oAuth2ClientId, SoftwareStatement softwareStatement) Updates anApiClient
using 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
ApiClient
or anApiClientServiceException
if 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
ApiClient
or anApiClientServiceException
if an error occurs.
-