Subject.hasAllRoles

Returns {@code true} if this Subject has all of the specified roles, {@code false} otherwise.

@param roleIdentifiers the application-specific role identifiers to check (usually role ids or role names). @return true if this Subject has all the roles, false otherwise.

  1. bool hasAllRoles(Collection!(string) roleIdentifiers)
    interface Subject
    bool
    hasAllRoles
    (
    Collection!(string) roleIdentifiers
    )
  2. bool hasAllRoles(string[] roleIdentifiers)

Meta