Authorizer.hasAllRoles

Returns <tt>true</tt> if the corresponding Subject/user has all of the specified roles, <tt>false</tt> otherwise.

@param subjectPrincipal the application-specific subject/user identifier. @param roleIdentifiers the application-specific role identifiers to check (usually role ids or role names). @return true if the user has all the roles, false otherwise.

  1. bool hasAllRoles(PrincipalCollection subjectPrincipal, Collection!(string) roleIdentifiers)
  2. bool hasAllRoles(PrincipalCollection subjectPrincipal, string[] roleIdentifiers)
    interface Authorizer

Meta