public boolean hasRole(int roleId) {
        return (getRolesAsInteger() & roleId) == roleId;
    }
<p>hasRole.</p>

@param roleId a int
@return a boolean
pac4j-oauth/src/main/java/org/pac4j/oauth/profile/hiorgserver/HiOrgServerProfile.java