Subject.checkPermissions

Ensures this Subject {@link hunt.shiro.authz.Permission#implies(hunt.shiro.authz.Permission) implies} all of the specified permission strings. <p/> If this subject's existing associated permissions do not {@link hunt.shiro.authz.Permission#implies(hunt.shiro.authz.Permission) imply} all of the given permissions, an {@link hunt.shiro.authz.AuthorizationException} will be thrown. <p/> This is an overloaded method for the corresponding type-safe {@link Permission Permission} variant. Please see the class-level JavaDoc for more information on these string-based permission methods.

@param permissions the string representations of Permissions to check. @throws AuthorizationException if this Subject does not have all of the given permissions.

  1. void checkPermissions(string[] permissions)
    interface Subject
    void
    checkPermissions
    ()
  2. void checkPermissions(Collection!(Permission) permissions)

Meta