private static Map<String, Object> getAttributeMap(final Map<String, Object> attributeMap) {
        final Map<String, Object> newAttributes = new HashMap<>();
        for (var entries : attributeMap.entrySet()) {
            val key = entries.getKey();
            val value = attributeMap.get(key);
            newAttributes.put(key, value);
        }
        return newAttributes;
    }
Get all authentication attributes as an immutable map

@return the immutable authentication attributes
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java