Interface AISApi
-
public interface AISApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<AuthorizeResponse>aisAuth(String redirectId, String encryptedConsentId, String token)org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>aisDone(String encryptedConsentId, String authorisationId, String cookie, boolean isOauth2Integrated, String authConfirmationCode)This call provides the server with the opportunity to close this session and redirect the PSU to the TPP or close the application window.org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>authrizedConsent(String encryptedConsentId, String authorisationId, String consentAndaccessTokenCookieString, String authCode)Provides a TAN for the validation of an authorizationorg.springframework.http.ResponseEntity<List<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>>getListOfAccounts(String accessTokenCookieString)Return the list of accounts linked with the current customer.org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>login(String encryptedConsentId, String authorisationId, String login, String pin, String consentCookieString)Identifies the user by login an pin.org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>revokeConsent(String encryptedConsentId, String authorisationId, String cookieString)Fails AIS Consent authorisation object by its ID.org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>selectMethod(String encryptedConsentId, String authorisationId, String scaMethodId, String consentAndaccessTokenCookieString)Selects the SCA Method for use.org.springframework.http.ResponseEntity<ConsentAuthorizeResponse>startConsentAuth(String encryptedConsentId, String authorisationId, String consentAndaccessTokenCookieString, de.adorsys.ledgers.middleware.api.domain.um.AisConsentTO aisConsent)Start the consent process.
-
-
-
Field Detail
-
BASE_PATH
static final String BASE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
aisAuth
@GetMapping(path="/auth", params={"redirectId","encryptedConsentId"}) org.springframework.http.ResponseEntity<AuthorizeResponse> aisAuth(@RequestParam(name="redirectId") String redirectId, @RequestParam(name="encryptedConsentId") String encryptedConsentId, @RequestHeader(name="Authorization",required=false) String token)
-
login
@PostMapping(path="/{encryptedConsentId}/authorisation/{authorisationId}/login") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> login(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @RequestParam(value="login",required=false) String login, @RequestParam(value="pin",required=false) String pin, @RequestHeader(name="Cookie",required=false) String consentCookieString)Identifies the user by login an pin.The returned object contains:
- A list of accounts
This is supposed to be used to display the list of accounts to the psu
- An AisConsent object
This consent is initialized, but might not contain any more information
- Parameters:
encryptedConsentId- the encryptedConsentIdauthorisationId- the auth idlogin- the loginpin- the passwordconsentCookieString- the cosent cookie- Returns:
- ConsentAuthorizeResponse
- A list of accounts
-
startConsentAuth
@PostMapping("/{encryptedConsentId}/authorisation/{authorisationId}/start") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> startConsentAuth(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @RequestHeader(name="Cookie",required=false) String consentAndaccessTokenCookieString, @RequestBody de.adorsys.ledgers.middleware.api.domain.um.AisConsentTO aisConsent)Start the consent process. By sending the customer request consent to the core banking.- Parameters:
encryptedConsentId- the encrypted consent idauthorisationId- the authorization idconsentAndaccessTokenCookieString- the consent cookieaisConsent- the consent request object- Returns:
- ConsentAuthorizeResponse
-
selectMethod
@PostMapping("/{encryptedConsentId}/authorisation/{authorisationId}/methods/{scaMethodId}") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> selectMethod(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @PathVariable("scaMethodId") String scaMethodId, @RequestHeader(name="Cookie",required=false) String consentAndaccessTokenCookieString)Selects the SCA Method for use.- Parameters:
encryptedConsentId- the sca idauthorisationId- the auth idscaMethodId- scaconsentAndaccessTokenCookieString- the cosent cookie- Returns:
- ConsentAuthorizeResponse
-
authrizedConsent
@PostMapping(path="/{encryptedConsentId}/authorisation/{authorisationId}/authCode", params="authCode") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> authrizedConsent(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @RequestHeader(name="Cookie",required=false) String consentAndaccessTokenCookieString, @RequestParam("authCode") String authCode)Provides a TAN for the validation of an authorization- Parameters:
encryptedConsentId- the sca idauthorisationId- the auth idconsentAndaccessTokenCookieString- the cosent cookieauthCode- the auth code- Returns:
- ConsentAuthorizeResponse
-
getListOfAccounts
@GetMapping(path="/accounts") org.springframework.http.ResponseEntity<List<de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO>> getListOfAccounts(@RequestHeader(name="Cookie",required=false) String accessTokenCookieString)
Return the list of accounts linked with the current customer.- Returns:
- : the list of accounts linked with the current customer.
-
aisDone
@GetMapping(path="/{encryptedConsentId}/authorisation/{authorisationId}/done") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> aisDone(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @RequestHeader(name="Cookie",required=false) String cookie, @RequestParam(name="oauth2",required=false,defaultValue="false") boolean isOauth2Integrated, @RequestParam(name="authConfirmationCode",required=false) String authConfirmationCode)This call provides the server with the opportunity to close this session and redirect the PSU to the TPP or close the application window.In any case, the session of the user will be closed and cookies will be deleted.
- Parameters:
encryptedConsentId-authorisationId-- Returns:
-
revokeConsent
@DeleteMapping(path="/{encryptedConsentId}/{authorisationId}") org.springframework.http.ResponseEntity<ConsentAuthorizeResponse> revokeConsent(@PathVariable("encryptedConsentId") String encryptedConsentId, @PathVariable("authorisationId") String authorisationId, @RequestHeader(name="Cookie",required=false) String cookieString)Fails AIS Consent authorisation object by its ID.- Parameters:
encryptedConsentId- ID of Consent- Returns:
trueif consent authorisation was found and failed.falseotherwise.
-
-