Package ndg :: Package xacml :: Package core :: Package functions :: Package v1 :: Module match :: Class Rfc822NameMatch
[hide private]

Class Rfc822NameMatch

source code

      object --+    
               |    
AbstractFunction --+
                   |
                  Rfc822NameMatch

Match RFC 822 type name - e.g. e-mail addresses

Nested Classes [hide private]
  STRING_TYPE

Inherited from AbstractFunction: __metaclass__

Instance Methods [hide private]
bool
evaluate(self, string1, rfc822Name)
Match Rfc822 name
source code

Inherited from AbstractFunction: __init__

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

Class Variables [hide private]
NoneType (must be string in derived type) FUNCTION_NS = 'urn:oasis:names:tc:xacml:1.0:function:rfc822Nam...
namespace for the given function
  TYPE = None
hash(x)
  __abstractmethods__ = frozenset([])

Inherited from AbstractFunction: V1_0_FUNCTION_NS, V2_0_FUNCTION_NS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

evaluate(self, string1, rfc822Name)

source code 

Match Rfc822 name

Parameters:
  • string1 (basestring) - string to match to rfc822Name
  • rfc822Name (basestring) - RFC822 Name to match
Returns: bool
True if strings match, False otherwise
Overrides: AbstractFunction.evaluate

Class Variable Details [hide private]

FUNCTION_NS

namespace for the given function
Type:
NoneType (must be string in derived type)
Value:
'urn:oasis:names:tc:xacml:1.0:function:rfc822Name-match'