Package ndg :: Package saml :: Package saml2 :: Module core :: Class Conditions
[hide private]

Class Conditions

source code


SAML 2.0 Core Conditions.

Instance Methods [hide private]
 
__init__(self, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
NoneType / datetime.datetime
_getNotBefore(self)
Get the date/time before which the assertion is invalid.
source code
 
_setNotBefore(self, value)
Sets the date/time before which the assertion is invalid.
source code
NoneType / datetime.datetime
_getNotOnOrAfter(self)
Gets the date/time on, or after, which the assertion is invalid.
source code
 
_setNotOnOrAfter(self, value)
Sets the date/time on, or after, which the assertion is invalid.
source code
list
_getAudienceRestrictions(self)
Get the audience restriction conditions for the assertion.
source code
?
_getOneTimeUse(self)
Get the OneTimeUse condition for the assertion
source code
?
_getProxyRestriction(self)
Get the ProxyRestriction condition for the assertion
source code

Inherited from common.SAMLObject: __setstate__

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

Class Methods [hide private]

Inherited from common.SAMLObject: fromXML, toXML

Class Variables [hide private]
None DEFAULT_ELEMENT_LOCAL_NAME = 'Conditions'
default XML element name - derived classes must specify
ndg.saml.common.xml.QName DEFAULT_ELEMENT_NAME = QName(SAMLConstants.SAML20_NS, DEFAULT_...
Default element name.
string TYPE_LOCAL_NAME = 'ConditionsType'
Local name of the XSI type.
ndg.saml.common.xml.QName TYPE_NAME = QName(SAMLConstants.SAML20_NS, TYPE_LOCAL_NAME, SA...
Qualified Name of the XSI type.
string NOT_BEFORE_ATTRIB_NAME = 'NotBefore'
NotBefore attribute name.
string NOT_ON_OR_AFTER_ATTRIB_NAME = 'NotOnOrAfter'
NotOnOrAfter attribute name.
Instance Variables [hide private]
list self.__conditions
A list of Conditions.
NoneType / datetime.datetime self.__notBefore
Not Before condition
NoneType / datetime.datetime self.__notOnOrAfter
Not On Or After conditions.
Properties [hide private]
  notBefore
Not before time restriction
  notOnOrAfter
Not on or after time restriction
list conditions
All the conditions on the assertion.
  __conditions
  __notBefore
  __notOnOrAfter

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

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

Parameters:
  • namespaceURI - the namespace the element is in
  • elementLocalName - the local name of the XML element this Object represents, defaults to DEFAULT_ELEMENT_LOCAL_NAME. Ensure that this is set to a valid string in derived classes rather the None base class setting
  • namespacePrefix - the prefix for the given namespace
Overrides: object.__init__
(inherited documentation)

__getstate__(self)

source code 

Enable pickling

Returns: dict
object's attribute dictionary
Overrides: common.SAMLObject.__getstate__

_getNotBefore(self)

source code 

Get the date/time before which the assertion is invalid.

Returns: NoneType / datetime.datetime
the date/time before which the assertion is invalid

_setNotBefore(self, value)

source code 

Sets the date/time before which the assertion is invalid.

Parameters:
  • value (datetime.datetime) - the date/time before which the assertion is invalid

_getNotOnOrAfter(self)

source code 

Gets the date/time on, or after, which the assertion is invalid.

Returns: NoneType / datetime.datetime
the date/time on, or after, which the assertion is invalid'

_setNotOnOrAfter(self, value)

source code 

Sets the date/time on, or after, which the assertion is invalid.

Parameters:
  • value (datetime.datetime) - the date/time on, or after, which the assertion is invalid

_getAudienceRestrictions(self)

source code 

Get the audience restriction conditions for the assertion.

Returns: list
the audience restriction conditions for the assertion
Raises:
  • NotImplementedError - not currently implemented

_getOneTimeUse(self)

source code 

Get the OneTimeUse condition for the assertion

Returns: ?
the OneTimeUse condition for the assertion
Raises:
  • NotImplementedError - not currently implemented

_getProxyRestriction(self)

source code 

Get the ProxyRestriction condition for the assertion

Returns: ?
the ProxyRestriction condition for the assertion
Raises:
  • NotImplementedError - not currently implemented

Class Variable Details [hide private]

DEFAULT_ELEMENT_NAME

Default element name.
Type:
ndg.saml.common.xml.QName
Value:
QName(SAMLConstants.SAML20_NS, DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstan\
ts.SAML20_PREFIX)

TYPE_NAME

Qualified Name of the XSI type.
Type:
ndg.saml.common.xml.QName
Value:
QName(SAMLConstants.SAML20_NS, TYPE_LOCAL_NAME, SAMLConstants.SAML20_P\
REFIX)

Property Details [hide private]

notBefore

Not before time restriction

Get Method:
_getNotBefore(self) - Get the date/time before which the assertion is invalid.
Set Method:
_setNotBefore(self, value) - Sets the date/time before which the assertion is invalid.

notOnOrAfter

Not on or after time restriction

Get Method:
_getNotOnOrAfter(self) - Gets the date/time on, or after, which the assertion is invalid.
Set Method:
_setNotOnOrAfter(self, value) - Sets the date/time on, or after, which the assertion is invalid.

conditions

All the conditions on the assertion.

Get Method:
unreachable.conditions(self) - All the conditions on the assertion.
Type:
list