public List<String> extractAttributeValues(final String name) {
        val value = getAttribute(name);
        if (value instanceof String) {
            return Collections.singletonList((String) value);
        } else if (value instanceof String[]) {
            return Arrays.asList((String[]) value);
        } else if (value instanceof List) {
            return (List<String>) value;
        } else {
            return null;
        }
    }
Return the attribute values with name.

@param name attribute name
@return the attribute values as List of strings.
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java