Optionalconfig: PolicyFirewallConfigEvaluates all policy rules against the given context.
Rules are evaluated in order. The first rule that denies stops evaluation and returns the denial decision.
The policy context to evaluate
The policy decision
Removes a policy rule by name.
The name of the rule to remove
True if the rule was found and removed
Gets all registered policy rules.
A readonly array of policy rules
Policy firewall that evaluates rules to authorize or deny operations.
Rules are evaluated in order. The first rule that denies the operation stops evaluation and returns the denial. If all rules pass, the operation is allowed.
Example