Subject.checkPermission

Ensures this Subject {@link Permission#implies(Permission) implies} the specified {@code Permission}. <p/> If this subject's existing associated permissions do not {@link Permission#implies(Permission) imply} the given permission, an {@link hunt.shiro.authz.AuthorizationException} will be thrown.

@param permission the Permission to check. @throws hunt.shiro.authz.AuthorizationException if this Subject does not have the permission.

  1. void checkPermission(string permission)
  2. void checkPermission(Permission permission)
    interface Subject
    void
    checkPermission

Meta