Interface AuthorisationServiceBase

    • Method Detail

      • getAuthorisationById

        CmsResponse<de.adorsys.psd2.xs2a.core.authorisation.Authorisation> getAuthorisationById​(String authorisationId)
        Gets authorisation
        Parameters:
        authorisationId - ID of authorisation session
        Returns:
        AuthorisationResponse
      • updateAuthorisation

        CmsResponse<de.adorsys.psd2.xs2a.core.authorisation.Authorisation> updateAuthorisation​(String authorisationId,
                                                                                               UpdateAuthorisationRequest request)
        Updates authorisation
        Parameters:
        authorisationId - ID of authorisation session
        request - needed parameters for updating authorisation
        Returns:
        AuthorisationResponse
      • updateAuthorisationStatus

        CmsResponse<Boolean> updateAuthorisationStatus​(String authorisationId,
                                                       de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus)
        Updates authorisation status
        Parameters:
        authorisationId - ID of authorisation session
        scaStatus - to be updated status
        Returns:
        boolean
      • getAuthorisationsByParentId

        CmsResponse<List<String>> getAuthorisationsByParentId​(AuthorisationParentHolder parentHolder)
        Gets list of authorisation IDs by parent ID
        Parameters:
        parentHolder - holder contains authorisation type and parent ID
        Returns:
        list of parent authorisation IDs
      • getAuthorisationScaStatus

        CmsResponse<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus​(String authorisationId,
                                                                                       AuthorisationParentHolder parentHolder)
        Gets SCA status of the authorisation by parent ID and authorisation ID
        Parameters:
        parentHolder - holder contains authorisation type and parent ID
        authorisationId - String representation of the authorisation identifier
        Returns:
        SCA status of the authorisation
      • isAuthenticationMethodDecoupled

        CmsResponse<Boolean> isAuthenticationMethodDecoupled​(String authorisationId,
                                                             String authenticationMethodId)
        Checks if requested authentication method is decoupled.
        Parameters:
        authorisationId - String representation of the authorisation identifier
        authenticationMethodId - String representation of the available authentication method identifier
        Returns:
        true, if authentication method is decoupled and false otherwise.
      • saveAuthenticationMethods

        CmsResponse<Boolean> saveAuthenticationMethods​(String authorisationId,
                                                       List<CmsScaMethod> methods)
        Saves authentication methods in provided authorisation
        Parameters:
        authorisationId - String representation of the authorisation identifier
        methods - List of authentication methods to be saved
        Returns:
        true if authorisation was found and updated, false otherwise
      • updateScaApproach

        CmsResponse<Boolean> updateScaApproach​(String authorisationId,
                                               de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
        Updates AIS SCA approach in authorisation
        Parameters:
        authorisationId - String representation of the authorisation identifier
        scaApproach - Chosen SCA approach
        Returns:
        true if authorisation was found and SCA approach updated, false otherwise
      • getAuthorisationScaApproach

        CmsResponse<de.adorsys.psd2.xs2a.core.sca.AuthorisationScaApproachResponse> getAuthorisationScaApproach​(String authorisationId)
        Gets SCA approach from the authorisation by authorisation ID
        Parameters:
        authorisationId - String representation of the authorisation identifier
        Returns:
        SCA approach of the authorisation