public void build(final Object id, final Map<String, Object> attributes) {
        setId(ProfileHelper.sanitizeIdentifier(id));
        addAttributes(attributes);
    }
Build a profile from user identifier and attributes.

@param id user identifier
@param attributes user attributes
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java