org.opensaml.ws.security
Interface SecurityPolicy

All Known Implementing Classes:
BasicSecurityPolicy

public interface SecurityPolicy

A security policy is a collection of SecurityPolicyRule, evaluated against a MessageContext, that is meant to determine if a message is well-formed, valid, and otherwise okay to process. Security policies MUST be thread safe and stateless.


Method Summary
 void evaluate(MessageContext messageContext)
          Evaluates this policy.
 java.util.List<SecurityPolicyRule> getPolicyRules()
          Gets the rules that are evaluated for this policy.
 

Method Detail

getPolicyRules

java.util.List<SecurityPolicyRule> getPolicyRules()
Gets the rules that are evaluated for this policy.

Returns:
rules that are evaluated for this policy

evaluate

void evaluate(MessageContext messageContext)
              throws SecurityPolicyException
Evaluates this policy. Rules are evaluated in the order returned by getPolicyRules().

Parameters:
messageContext - the message context being evaluated
Throws:
SecurityPolicyException - thrown if the requirements of the security policy, including those of any of its rules, are not satisified by the given message context. Also thrown if any error is encountered during evaluation


Copyright © 2006-2011 Internet2. All Rights Reserved.