Package ndg :: Package xacml :: Package core :: Package context :: Module request :: Class Request
[hide private]

Class Request

source code

   object --+        
            |        
XacmlCoreBase --+    
                |    
 XacmlContextBase --+
                    |
                   Request
Known Subclasses:

XACML Request class

Instance Methods [hide private]
 
__init__(self)
ELEMENT_LOCAL_NAME check makes this class virtual - derived classes must override this method and set ELEMENT_LOCAL_NAME to the appropriate string
source code
dict
__getstate__(self)
Enable pickling
source code

Inherited from XacmlContextBase: __setstate__

Inherited from XacmlCoreBase (private): _getXmlns, _setXmlns

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

Class Variables [hide private]
NoneType but implement as string in derived classes ELEMENT_LOCAL_NAME = 'Request'
XML element local name for the given type

Inherited from XacmlContextBase: XACML_2_0_CONTEXT_NS, XACML_2_0_CONTEXT_NS_PREFIX

Inherited from XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Instance Variables [hide private]
ndg.xacml.core.context.handler.CtxHandlerInterface / None ctxHandler
reference to context handler to enable the PDP to query for additional attributes.
None / ndg.xacml.core.context.action.Action __action
action for this request
None / ndg.xacml.core.context.environment.Environment __environment
environment associated with this request
  __resources
list of resources corresponding to this request
ndg.xacml.utils.TypedList __subjects
list of subjects corresponding to this request
Properties [hide private]
ndg.xacml.utils.TypedList subjects
Get Request subjects
ndg.xacml.utils.TypedList resources
Get Request resources
None / ndg.xacml.core.context.action.Action action
Get Request action
None / ndg.xacml.core.context.environment.Environment environment
Get Request environment
None / ndg.xacml.utils.xpath_selector.XpathSelectorInterface derived type attributeSelector
Get attribute selector used to make XPath selections on request
  __attributeSelector
  __ctxHandler

Inherited from XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

ELEMENT_LOCAL_NAME check makes this class virtual - derived classes must override this method and set ELEMENT_LOCAL_NAME to the appropriate string

Raises:
  • NotImplementedError - derived classes must set ELEMENT_LOCAL_NAME to a string
Overrides: object.__init__
(inherited documentation)

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: XacmlCoreBase.__getstate__

Instance Variable Details [hide private]

ctxHandler

reference to context handler to enable the PDP to query for additional attributes. The Context Handler itself queries a Policy Information Point. This handler setting may be omitted. If so, the PDP will rely entirely on the input request context for making access control decisions
Get Method:
unreachable.ctxHandler(self) - Get Context handler used by evaluate method to query the PIP for additional attribute values
Set Method:
unreachable.ctxHandler(self, value) - Set Context handler used by evaluate method to query the PIP for additional attribute values
Type:
ndg.xacml.core.context.handler.CtxHandlerInterface / None

Property Details [hide private]

subjects

Get Request subjects

Get Method:
unreachable.subjects(self) - Get Request subjects
Type:
ndg.xacml.utils.TypedList

resources

Get Request resources

Get Method:
unreachable.resources(self) - Get Request resources
Type:
ndg.xacml.utils.TypedList

action

Get Request action

Get Method:
unreachable.action(self) - Get Request action
Set Method:
unreachable.action(self, value) - Set Request action
Type:
None / ndg.xacml.core.context.action.Action

environment

Get Request environment

Get Method:
unreachable.environment(self) - Get Request environment
Set Method:
unreachable.environment(self, value) - Set Request environment
Type:
None / ndg.xacml.core.context.environment.Environment

attributeSelector

Get attribute selector used to make XPath selections on request

Get Method:
unreachable.attributeSelector(self) - Get attribute selector used to make XPath selections on request
Set Method:
unreachable.attributeSelector(self, value) - Set attribute selector used to make XPath selections on request
Type:
None / ndg.xacml.utils.xpath_selector.XpathSelectorInterface derived type