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

Class Assertion

source code


SAML 2.0 Attribute Assertion for use with NERC DataGrid

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
__getstate__(self)
Enable pickling
source code
ndg.saml.common.SAMLVersion/NoneType
_get_version(self)
Returns: the SAML Version of this assertion
source code
 
_set_version(self, version) source code
datetime.datetime/NoneType
_get_issueInstant(self)
Gets the issue instance of this assertion.
source code
 
_set_issueInstant(self, issueInstant)
Sets the issue instance of this assertion.
source code
basestring/NoneType
_get_id(self)
Get the ID of this assertion
source code
 
_set_id(self, _id)
Set the ID of this assertion
source code
 
_set_issuer(self, issuer)
Set issuer
source code
ndg.saml.saml2.core.Issuer
_get_issuer(self)
Get the issuer name
source code
 
_set_subject(self, subject)
Set subject string
source code
ndg.saml.saml2.core.Subject
_get_subject(self)
Get subject string
source code
ndg.saml.saml2.core.Conditions
_get_conditions(self)
Get conditions
source code
 
_set_conditions(self, value)
Set conditions
source code
 
_set_advice(self, advice)
Set advice string
source code
basestring
_get_advice(self)
Get advice string
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 = 'Assertion'
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 = 'AssertionType'
Local name of the XSI type.
ndg.saml.common.xml.QName TYPE_NAME = QName(SAMLConstants.SAML20_NS, TYPE_LOCAL_NAME, SA...
QName of the XSI type.
string VERSION_ATTRIB_NAME = 'Version'
Version attribute name.
string ISSUE_INSTANT_ATTRIB_NAME = 'IssueInstant'
IssueInstant attribute name.
string ID_ATTRIB_NAME = 'ID'
ID attribute name.
Instance Variables [hide private]
string __advice
advice statement
ndg.saml.utils.TypedList __attributeStatements
asserted attribute statements
list __authnStatements
asserted authentication statements
ndg.saml.utils.TypedList __authzDecisionStatements
asserted authorization decision statements
ndg.saml.saml2.core.Conditions __conditions
conditions for this assertion
string __id
assertion identifier
datetime.datetime __issueInstant
issue instant for assertion
ndg.saml.saml2.core.Issuer __issuer
issuer of this assertion
ndg.saml.utils.TypedList __statements
asserted statements
ndg.saml.saml2.core.Subject __subject
subject of this assertion
ndg.saml.common.SAMLVersion __version
SAML version used
Properties [hide private]
  version
SAML Version of the assertion
  issueInstant
Issue instant of the assertion
  id
ID of assertion
  issuer
Issuer of assertion
  subject
Attribute Assertion subject
  conditions
Attribute Assertion conditions
  advice
Attribute Assertion advice
ndg.saml.utils.TypedList statements
Assertion statements
ndg.saml.utils.TypedList authnStatements
Attribute Assertion authentication
ndg.saml.utils.TypedList authzDecisionStatements
Attribute Assertion authorisation decision statements
ndg.saml.utils.TypedList attributeStatements
Attribute Assertion attribute statements

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(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__

_get_version(self)

source code 
Returns: ndg.saml.common.SAMLVersion/NoneType
the SAML Version of this assertion

_set_version(self, version)

source code 
Parameters:
  • version (ndg.saml.common.SAMLVersion) - the SAML Version of this assertion
Raises:
  • TypeError - incorrect type for input value

_get_issueInstant(self)

source code 

Gets the issue instance of this assertion.

Returns: datetime.datetime/NoneType
the issue instance of this assertion

_set_issueInstant(self, issueInstant)

source code 

Sets the issue instance of this assertion.

Parameters:
  • issueInstant (datetime.datetime/NoneType) - the issue instance of this assertion
Raises:
  • TypeError - incorrect type for input value

_get_id(self)

source code 

Get the ID of this assertion

Returns: basestring/NoneType
the ID of this assertion

_set_id(self, _id)

source code 

Set the ID of this assertion

Parameters:
  • _id (basestring) - the ID of this assertion
Raises:
  • TypeError - incorrect type for input value

_set_issuer(self, issuer)

source code 

Set issuer

Parameters:
  • issuer (ndg.saml.saml2.core.Issuer) - issuer of the assertion
Raises:
  • TypeError - incorrect type for input value

_get_issuer(self)

source code 

Get the issuer name

Returns: ndg.saml.saml2.core.Issuer
issuer name

_set_subject(self, subject)

source code 

Set subject string

Parameters:
  • subject (ndg.saml.saml2.core.Subject) - subject of this assertion
Raises:
  • TypeError - incorrect type for input value

_get_subject(self)

source code 

Get subject string

Returns: ndg.saml.saml2.core.Subject
subject of this assertion

_get_conditions(self)

source code 

Get conditions

Returns: ndg.saml.saml2.core.Conditions
conditions for this assertion

_set_conditions(self, value)

source code 

Set conditions

Parameters:
  • value (ndg.saml.saml2.core.Conditions) - conditions for this assertion
Raises:
  • TypeError - incorrect type for input value

_set_advice(self, advice)

source code 

Set advice string

Parameters:
  • advice (basestring) - advice for this assertion
Raises:
  • TypeError - incorrect type for input value

_get_advice(self)

source code 

Get advice string

Returns: basestring
advice for this assertion

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

QName 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]

version

SAML Version of the assertion

Get Method:
_get_version(self) - Returns: the SAML Version of this assertion
Set Method:
_set_version(self, version)

issueInstant

Issue instant of the assertion

Get Method:
_get_issueInstant(self) - Gets the issue instance of this assertion.
Set Method:
_set_issueInstant(self, issueInstant) - Sets the issue instance of this assertion.

id

ID of assertion

Get Method:
_get_id(self) - Get the ID of this assertion
Set Method:
_set_id(self, _id) - Set the ID of this assertion

issuer

Issuer of assertion

Get Method:
_get_issuer(self) - Get the issuer name
Set Method:
_set_issuer(self, issuer) - Set issuer

subject

Attribute Assertion subject

Get Method:
_get_subject(self) - Get subject string
Set Method:
_set_subject(self, subject) - Set subject string

conditions

Attribute Assertion conditions

Get Method:
_get_conditions(self) - Get conditions
Set Method:
_set_conditions(self, value) - Set conditions

advice

Attribute Assertion advice

Get Method:
_get_advice(self) - Get advice string
Set Method:
_set_advice(self, advice) - Set advice string

statements

Assertion statements

Get Method:
unreachable.statements(self) - Assertion statements
Type:
ndg.saml.utils.TypedList

authnStatements

Attribute Assertion authentication

Get Method:
unreachable.authnStatements(self) - Attribute Assertion authentication
Type:
ndg.saml.utils.TypedList

authzDecisionStatements

Attribute Assertion authorisation decision statements

Get Method:
unreachable.authzDecisionStatements(self) - Attribute Assertion authorisation decision statements
Type:
ndg.saml.utils.TypedList

attributeStatements

Attribute Assertion attribute statements

Get Method:
unreachable.attributeStatements(self) - Attribute Assertion attribute statements
Type:
ndg.saml.utils.TypedList