Package ndg :: Package xacml :: Package core :: Package context :: Module pdp :: Class PDP
[hide private]

Class PDP

source code

               object --+    
                        |    
pdpinterface.PDPInterface --+
                            |
                           PDP

A XACML Policy Decision Point implementation. It supports the use of a single policy but not policy sets

Nested Classes [hide private]

Inherited from pdpinterface.PDPInterface: __metaclass__

Instance Methods [hide private]
 
__init__(self, policy=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setPolicyFromSource(self, source, readerFactory, finder)
initialise PDP with the given policy
source code
ndg.xacml.core.context.response.Response
evaluate(self, request)
Make an access control decision for the given request based on the single policy provided
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
fromPolicySource(cls, source, readerFactory, finder=None)
Create a new PDP instance with a given policy
source code
Class Variables [hide private]
  __abstractmethods__ = frozenset([])
Instance Variables [hide private]
  __policy
policy object for PDP to use to apply access control decisions
Properties [hide private]
ndg.xacml.core.policy.Policy policy
Get policy

Inherited from object: __class__

Method Details [hide private]

__init__(self, policy=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • policy (ndg.xacml.core.policy.Policy / None) - policy object for PDP to use to apply access control decisions, may be omitted.
Overrides: object.__init__

fromPolicySource(cls, source, readerFactory, finder=None)
Class Method

source code 

Create a new PDP instance with a given policy

Parameters:
  • source (type (dependent on the reader set, it could be for example a file path string, file object, XML element instance)) - source for policy
  • readerFactory (ndg.xacml.parsers.AbstractReader derived type) - reader factory returns the reader to use to read this policy
  • finder (ndg.xacml.finder.PolicyFinderBase subclass) - policy finder

setPolicyFromSource(self, source, readerFactory, finder)

source code 

initialise PDP with the given policy

Parameters:
  • source (type (dependent on the reader set, it could be for example a file path string, file object, XML element instance)) - source for policy
  • readerFactory (ndg.xacml.parsers.AbstractReader derived type) - reader factory returns the reader to use to read this policy
  • finder (ndg.xacml.finder.PolicyFinderBase subclass) - policy finder

evaluate(self, request)

source code 

Make an access control decision for the given request based on the single policy provided

Parameters:
  • request (ndg.xacml.core.context.request.Request) - XACML request context
Returns: ndg.xacml.core.context.response.Response
XACML response instance
Overrides: pdpinterface.PDPInterface.evaluate

Property Details [hide private]

policy

Get policy

Get Method:
unreachable.policy(self) - Get policy
Set Method:
unreachable.policy(self, value) - Set policy
Type:
ndg.xacml.core.policy.Policy