Authorizer.checkPermission

Ensures a subject/user {@link Permission#implies(Permission)} implies} the specified <tt>Permission</tt>. If the subject's existing associated permissions do not {@link Permission#implies(Permission)} imply} the given permission, an {@link AuthorizationException} will be thrown.

@param subjectPrincipal the application-specific subject/user identifier. @param permission the Permission to check. @throws AuthorizationException if the user does not have the permission.

  1. void checkPermission(PrincipalCollection subjectPrincipal, string permission)
  2. void checkPermission(PrincipalCollection subjectPrincipal, Permission permission)
    interface Authorizer

Meta