opensaml::SecurityPolicyRule Class Reference

A rule that a protocol request and message must meet in order to be valid and secure. More...

#include <saml/binding/SecurityPolicyRule.h>

List of all members.

Public Member Functions

virtual const char * getType () const =0
 Returns the rule's class/type.
virtual void evaluate (const xmltooling::XMLObject &message, const xmltooling::GenericRequest *request, SecurityPolicy &policy) const =0
 Evaluates the rule against the given request and message.


Detailed Description

A rule that a protocol request and message must meet in order to be valid and secure.

Rules must be stateless and thread-safe across evaluations. Evaluation should not result in an exception if the request/message properties do not apply to the rule (e.g. particular security mechanisms that are not present).


Member Function Documentation

virtual void opensaml::SecurityPolicyRule::evaluate ( const xmltooling::XMLObject &  message,
const xmltooling::GenericRequest *  request,
SecurityPolicy policy 
) const [pure virtual]

Evaluates the rule against the given request and message.

An exception will be raised if the message is invalid according to a policy rule.

Parameters:
message the incoming message
request the protocol request
policy SecurityPolicy to provide various components and track message data

virtual const char* opensaml::SecurityPolicyRule::getType (  )  const [pure virtual]

Returns the rule's class/type.

Returns:
the class/type of the object


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 16:04:24 2009 for opensaml-2.1 by  doxygen 1.4.7