class DefaultConsentReferencePolicy implements ConsentReferencePolicy {

    @Override
    public ConsentReference fromURL(String redirectId, ConsentType consentType, String encryptedConsentId) {
        ConsentReference cr = new ConsentReference();
        cr.setRedirectId(redirectId);
        cr.setConsentType(consentType);
        cr.setEncryptedConsentId(encryptedConsentId);
        String cookieString = toClaim(cr);
        cr.setCookieString(cookieString);
        return cr;
    }

}