Interface AISApi


  • public interface AISApi
    • 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 encryptedConsentId
        authorisationId - the auth id
        login - the login
        pin - the password
        consentCookieString - the cosent cookie
        Returns:
        ConsentAuthorizeResponse
      • 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 id
        authorisationId - the authorization id
        consentAndaccessTokenCookieString - the consent cookie
        aisConsent - 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 id
        authorisationId - the auth id
        scaMethodId - sca
        consentAndaccessTokenCookieString - 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 id
        authorisationId - the auth id
        consentAndaccessTokenCookieString - the cosent cookie
        authCode - 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:
        true if consent authorisation was found and failed. false otherwise.