ArcSec::Evaluator Class Reference

Interface for policy evaluation. Execute the policy evaluation, based on the request and policy. More...

#include <Evaluator.h>

Inheritance diagram for ArcSec::Evaluator:
Arc::Plugin

Public Member Functions

virtual Responseevaluate (Request *request)=0
virtual Responseevaluate (const Source &request)=0
virtual Responseevaluate (Request *request, const Source &policy)=0
virtual Responseevaluate (const Source &request, const Source &policy)=0
virtual Responseevaluate (Request *request, Policy *policyobj)=0
virtual Responseevaluate (const Source &request, Policy *policyobj)=0
virtual AttributeFactorygetAttrFactory ()=0
virtual FnFactorygetFnFactory ()=0
virtual AlgFactorygetAlgFactory ()=0
virtual void addPolicy (const Source &policy, const std::string &id="")=0
virtual void addPolicy (Policy *policy, const std::string &id="")=0
virtual void setCombiningAlg (EvaluatorCombiningAlg alg)=0
virtual void setCombiningAlg (CombiningAlg *alg=NULL)=0
virtual const char * getName (void) const =0

Protected Member Functions

virtual Responseevaluate (EvaluationCtx *ctx)=0

Detailed Description

Interface for policy evaluation. Execute the policy evaluation, based on the request and policy.


Member Function Documentation

virtual void ArcSec::Evaluator::addPolicy ( Policy policy,
const std::string &  id = "" 
) [pure virtual]

Add policy to the evaluator. Policy will be marked with id. The policy object is taken over by this instance and will be destroyed in destructor.

virtual void ArcSec::Evaluator::addPolicy ( const Source policy,
const std::string &  id = "" 
) [pure virtual]

Add policy from specified source to the evaluator. Policy will be marked with id.

virtual Response* ArcSec::Evaluator::evaluate ( EvaluationCtx ctx  )  [protected, pure virtual]

Evaluate the request by using the EvaluationCtx object (which includes the information about request). The ctx is destroyed inside this method (why?!?!?).

virtual Response* ArcSec::Evaluator::evaluate ( const Source request,
Policy policyobj 
) [pure virtual]

Evaluate the request from specified source against the specified policy. In some implementations all of the existing policie inside the evaluator may be destroyed by this method.

virtual Response* ArcSec::Evaluator::evaluate ( Request request,
Policy policyobj 
) [pure virtual]

Evaluate the specified request against the specified policy. In some implementations all of the existing policy inside the evaluator may be destroyed by this method.

virtual Response* ArcSec::Evaluator::evaluate ( const Source request,
const Source policy 
) [pure virtual]

Evaluate the request from specified source against the policy from specified source. In some implementations all of the existing policie inside the evaluator may be destroyed by this method.

virtual Response* ArcSec::Evaluator::evaluate ( Request request,
const Source policy 
) [pure virtual]

Evaluate the specified request against the policy from specified source. In some implementations all of the existing policies inside the evaluator may be destroyed by this method.

virtual Response* ArcSec::Evaluator::evaluate ( const Source request  )  [pure virtual]

Evaluates the request by using a specified source

virtual Response* ArcSec::Evaluator::evaluate ( Request request  )  [pure virtual]

Evaluates the request by using a Request object. Evaluation is done till at least one of policies is satisfied.

virtual AlgFactory* ArcSec::Evaluator::getAlgFactory (  )  [pure virtual]

Get the AlgFactory object

virtual AttributeFactory* ArcSec::Evaluator::getAttrFactory (  )  [pure virtual]

Get the AttributeFactory object

virtual FnFactory* ArcSec::Evaluator::getFnFactory (  )  [pure virtual]

Get the FnFactory object

virtual const char* ArcSec::Evaluator::getName ( void   )  const [pure virtual]

Get the name of this evaluator

virtual void ArcSec::Evaluator::setCombiningAlg ( CombiningAlg alg = NULL  )  [pure virtual]

Specifies loadable combining algorithms. In case of multiple policies their results will be combined using this algorithm. To switch to simple algorithm specify NULL argument.

virtual void ArcSec::Evaluator::setCombiningAlg ( EvaluatorCombiningAlg  alg  )  [pure virtual]

Specifies one of simple combining algorithms. In case of multiple policies their results will be combined using this algorithm.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:33 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3