class RedirectLinkBuilder {

    public String buildConfirmationLink(String consentId, String redirectId, ConsentType consentType) {
        String authorisationUrl = getAuthorisationUrlByConsentType(consentType);
        return authorisationUrl
                   .replace(CONSENT_ID, consentId)
                   .replace(AUTHORISATION_ID, redirectId);
    }

}