Authorizer.isPermitted

Returns <tt>true</tt> if the corresponding subject/user is permitted to perform an action or access a resource summarized by the specified permission.

<p>More specifically, this method determines if any <tt>Permission</tt>s associated with the subject {@link Permission#implies(Permission) imply} the specified permission.

@param subjectPrincipal the application-specific subject/user identifier. @param permission the permission that is being checked. @return true if the corresponding Subject/user is permitted, false otherwise.

Meta