Interface ConsentReferencePolicy


  • public interface ConsentReferencePolicy
    Defines how to reference a consent.
    Author:
    fpo
    • Method Detail

      • fromURL

        ConsentReference fromURL​(String redirectId,
                                 ConsentType consentType,
                                 String encryptedConsentId)
        Produces The consent reference based on the inbound URL parameter. I sure, just store those url parameters so we can keep them in a consent cookie.

        The inbound url will contain either an ais consentId or the pis paymentId. We call any of them an encrypted consent id.

        Parameters:
        redirectId - : the redirect id.
        consentType - : the type of consent requested payment, account information, cancelation.
        encryptedConsentId - the encrypted consent id
        Returns:
        a holder of the consent references
      • fromRequest

        ConsentReference fromRequest​(String encryptedConsentId,
                                     String authorizationId)
        Produces a consent reference from a web request. Given encryptedConsentId and authorizationId are matched against the values stored in the cookie.
        Parameters:
        encryptedConsentId - : the encrypted consent id from the request url
        authorizationId - : the authorization id from the request url
        Returns:
        a holder of the consent references