Subject.checkPermission

Ensures this Subject implies the specified permission string. <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. <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 permission the string representation of the Permission to check. @throws hunt.shiro.authz.AuthorizationException if the user does not have the permission.

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

Meta