Authorizer.checkPermissions

Ensures the corresponding Subject/user {@link Permission#implies(Permission) implies} all of the specified permission strings.

If the subject's existing associated permissions do not {@link Permission#implies(Permission) imply} all of the given permissions, an {@link 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 subjectPrincipal the application-specific subject/user identifier. @param permissions the string representations of Permissions to check. @throws AuthorizationException if the user does not have all of the given permissions.

  1. void checkPermissions(PrincipalCollection subjectPrincipal, string[] permissions)
    interface Authorizer
    void
    checkPermissions
  2. void checkPermissions(PrincipalCollection subjectPrincipal, Collection!(Permission) permissions)

Meta