private static String sha512ConsentAttributeValues(final Map<String, List<Object>> attributes) {
        val allValues = attributes.values().stream()
            .map(CollectionUtils::toCollection)
            .map(c -> c.stream().map(Object::toString).collect(Collectors.joining()))
            .collect(Collectors.joining("|"));
        return DigestUtils.sha512(allValues);
    }
This is {@link DefaultConsentDecisionBuilder}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/DefaultConsentDecisionBuilder.java