Subject.checkRoles

Asserts this Subject has all of the specified roles by returning quietly if they do or throwing an {@link hunt.shiro.authz.AuthorizationException} if they do not.

@param roleIdentifiers the application-specific role identifiers to check (usually role ids or role names). @throws hunt.shiro.authz.AuthorizationException if this Subject does not have all of the specified roles.

  1. void checkRoles(Collection!(string) roleIdentifiers)
    interface Subject
    void
    checkRoles
    (
    Collection!(string) roleIdentifiers
    )
  2. void checkRoles(string[] roleIdentifiers)

Meta