private List<Object> hashValues(final List<Object> currentValues) {
        return currentValues
            .stream()
            .map(value -> switch (getHashingStrategy().toLowerCase(Locale.ENGLISH)) {
                    case "hex" -> EncodingUtils.hexEncode(value.toString());
                    case "base64" -> EncodingUtils.encodeBase64(value.toString());
                    case "sha", "sha1" -> DigestUtils.sha(value.toString());
                    case "sha256" -> DigestUtils.sha256(value.toString());
                    case "sha512" -> DigestUtils.sha512(value.toString());
                    default -> value;
                })
            .collect(Collectors.toList());
    }
This is {@link DefaultAttributeDefinition}.

@author Misagh Moayyed
@author Travis Schmidt
@since 6.2.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/DefaultAttributeDefinition.java