public void setRoles(Set<String> roles) {
        CommonHelper.assertNotNull("roles", roles);
        this.roles = roles;
    }
<p>Setter for the field <code>roles</code>.</p>

@param roles a {@link Set} object
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java