public void addAttributes(final Map<String, Object> attributes) {
        if (attributes != null) {
            for (val entry : attributes.entrySet()) {
                addAttribute(entry.getKey(), entry.getValue());
            }
        }
    }
Add attributes.

@param attributes use attributes
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java