public class BasicSecurityPolicy extends Object implements SecurityPolicy
SecurityPolicyRule in an ordered manner.
A policy evaluates successfully if, and only if, all policy rules evaluate successfully.| Modifier and Type | Field and Description |
|---|---|
private ArrayList<SecurityPolicyRule> |
rules
Registered security rules.
|
| Constructor and Description |
|---|
BasicSecurityPolicy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(MessageContext messageContext)
Evaluates this policy.
|
List<SecurityPolicyRule> |
getPolicyRules()
Gets the rules that are evaluated for this policy.
|
private ArrayList<SecurityPolicyRule> rules
public List<SecurityPolicyRule> getPolicyRules()
getPolicyRules in interface SecurityPolicypublic void evaluate(MessageContext messageContext) throws SecurityPolicyException
SecurityPolicy.getPolicyRules().evaluate in interface SecurityPolicymessageContext - the message context being evaluatedSecurityPolicyException - thrown if the requirements of the security policy, including those of
any of its rules, are not satisfied by the given message context. Also thrown if any error
is encountered during evaluationCopyright © 1999-2016. All Rights Reserved.