public class TppEngineClient extends Object
| Constructor and Description |
|---|
TppEngineClient(String serviceUrl)
Create a new client with provided base URL.
|
TppEngineClient(String serviceUrl,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a new client with provided base URL and custom object mapper.
|
| Modifier and Type | Method and Description |
|---|---|
io.getlime.core.rest.model.base.response.ObjectResponse<ConsentDetailResponse> |
consentDetail(String id)
Lookup consent details (details of a consent template).
|
io.getlime.core.rest.model.base.response.ObjectResponse<UserConsentDetailResponse> |
consentStatus(String userId,
String consentId,
String clientId)
Lookup consent status for given user and app.
|
io.getlime.core.rest.model.base.response.ObjectResponse<TppAppDetailResponse> |
fetchAppInfo(String clientId)
Lookup information about a provided app.
|
org.springframework.web.client.RestTemplate |
getRestTemplate()
Get default instance of REST client.
|
io.getlime.core.rest.model.base.response.ObjectResponse<GiveConsentResponse> |
giveConsent(GiveConsentRequest request)
Give consent according to request parameters.
|
io.getlime.core.rest.model.base.response.Response |
rejectConsent(RemoveConsentRequest request)
Reject consent according to request parameters.
|
public TppEngineClient(String serviceUrl)
serviceUrl - Base URL.public TppEngineClient(String serviceUrl, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
serviceUrl - Base URL.objectMapper - Object mapper.public org.springframework.web.client.RestTemplate getRestTemplate()
public io.getlime.core.rest.model.base.response.ObjectResponse<ConsentDetailResponse> consentDetail(String id) throws TppEngineClientException
id - Username for user account which is being looked up.TppEngineClientException - Thrown when client request fails or user does not exist.public io.getlime.core.rest.model.base.response.ObjectResponse<UserConsentDetailResponse> consentStatus(String userId, String consentId, String clientId) throws TppEngineClientException
userId - Username for user account which is being looked up.consentId - Identifier of a consent.clientId - Identifier of a TPP app.TppEngineClientException - Thrown when client request fails or user does not exist.public io.getlime.core.rest.model.base.response.ObjectResponse<GiveConsentResponse> giveConsent(GiveConsentRequest request) throws TppEngineClientException
request - Consent information.TppEngineClientException - Thrown when client request fails or authentication fails.public io.getlime.core.rest.model.base.response.Response rejectConsent(RemoveConsentRequest request) throws TppEngineClientException
request - Consent information.TppEngineClientException - Thrown when client request fails or authentication fails.public io.getlime.core.rest.model.base.response.ObjectResponse<TppAppDetailResponse> fetchAppInfo(String clientId) throws TppEngineClientException
clientId - Identifier of a TPP app.TppEngineClientException - Thrown when client request fails or app does not exist.Copyright © 2016–2020 Wultra s.r.o.. All rights reserved.