Subject.checkRoles

Same as {@link #checkRoles(Collection!(string) roleIdentifiers) checkRoles(Collection!(string) roleIdentifiers)} but doesn't require a collection as a an argument. 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 roleIdentifiers the application-specific role identifiers to check (usually role ids or role names). @throws AuthorizationException hunt.shiro.authz.AuthorizationException if this Subject does not have all of the specified roles.

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

Meta