org.opensaml.ws.security.provider
Class BasicSecurityPolicy

java.lang.Object
  extended by org.opensaml.ws.security.provider.BasicSecurityPolicy
All Implemented Interfaces:
SecurityPolicy

public class BasicSecurityPolicy
extends java.lang.Object
implements SecurityPolicy

Basic security policy implementation which evaluates a given set of SecurityPolicyRule in an ordered manner. A policy evaluates successfully if, and only if, all policy rules evaluate successfully.


Constructor Summary
BasicSecurityPolicy()
          Constructor.
 
Method Summary
 void evaluate(MessageContext messageContext)
          Evaluates this policy.
 java.util.List<SecurityPolicyRule> getPolicyRules()
          Gets the rules that are evaluated for this policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSecurityPolicy

public BasicSecurityPolicy()
Constructor.

Method Detail

getPolicyRules

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

Specified by:
getPolicyRules in interface SecurityPolicy
Returns:
rules that are evaluated for this policy

evaluate

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

Specified by:
evaluate in interface SecurityPolicy
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.