Package ndg :: Package xacml :: Package core :: Module attributeselector :: Class AttributeSelector
[hide private]

Class AttributeSelector

source code

       object --+        
                |        
    XacmlCoreBase --+    
                    |    
expression.Expression --+
                        |
                       AttributeSelector

XACML Attribute Selector type

Nested Classes [hide private]

Inherited from expression.Expression: __metaclass__

Instance Methods [hide private]
 
__init__(self)
XACML Attribute Selector type
source code
bag of dataType
evaluate(self, context)
Evaluates an XPath expression with the context node being the request using the XPath selector set in the context.
source code

Inherited from expression.Expression: __getstate__

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 = 'AttributeSelector'
XML element local name for the given type
string MUST_BE_PRESENT_ATTRIB_NAME = 'MustBePresent'
must be present XML attribute name
string REQUEST_CONTEXT_PATH_ATTRIB_NAME = 'RequestContextPath'
request context XML attribute name
  __abstractmethods__ = frozenset([])

Inherited from expression.Expression: DATA_TYPE_ATTRIB_NAME

Inherited from XacmlCoreBase: XACML_1_0_NS_PREFIX, XACML_2_0_NS_PREFIX, XMLNS

Instance Variables [hide private]
ndg.xacml.core.attributevalue.AttributeValueClassFactory __attributeValueFactory
When evaluating matches, use an attribute value class factory to create attribute values for match bag of the correct DataType to respect type based rule functions
Properties [hide private]
basestring requestContextPath
Get request context path
bool mustBePresent
Get Must Be Present flag
ndg.xacml.core.attributevalue.AttributeValueClassFactory attributeValueFactory
Get Attribute Value factory function
  __mustBePresent
  __requestContextPath

Inherited from expression.Expression: dataType

Inherited from XacmlCoreBase: elem, isValidXmlns, xmlns

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

XACML Attribute Selector type

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

evaluate(self, context)

source code 

Evaluates an XPath expression with the context node being the request using the XPath selector set in the context.

Parameters:
  • context (ndg.xacml.core.context.request.Request) - request context
Returns: bag of dataType
bag of matched values
Overrides: expression.Expression.evaluate

Property Details [hide private]

requestContextPath

Get request context path

Get Method:
unreachable.requestContextPath(self) - Get request context path
Set Method:
unreachable.requestContextPath(self, value) - Set request context path
Type:
basestring

mustBePresent

Get Must Be Present flag

Get Method:
unreachable.mustBePresent(self) - Get Must Be Present flag
Set Method:
unreachable.mustBePresent(self, value) - Set Must Be Present flag
Type:
bool

attributeValueFactory

Get Attribute Value factory function

Get Method:
unreachable.attributeValueFactory(self) - Get Attribute Value factory function
Type:
ndg.xacml.core.attributevalue.AttributeValueClassFactory