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

Class AuthnStatement

source code


SAML 2.0 Core AuthnStatement. Currently implemented in abstract form only

Instance Methods [hide private]
datetime.datetime
_getAuthnInstant(self)
Abstract method.
source code
 
_setAuthnInstant(self, value)
Sets the time when the authentication took place.
source code
?
_getSessionIndex(self)
Get the session index between the principal and the authenticating authority.
source code
 
_setSessionIndex(self, value)
Sets the session index between the principal and the authenticating authority.
source code
datetime.datetime
_getSessionNotOnOrAfter(self)
Get the time when the session between the principal and the SAML authority ends.
source code
 
_setSessionNotOnOrAfter(self, value)
Set the time when the session between the principal and the SAML authority ends.
source code
?
_getSubjectLocality(self)
Get the DNS domain and IP address of the system where the principal was authenticated.
source code
 
_setSubjectLocality(self, value)
Set the DNS domain and IP address of the system where the principal was authenticated.
source code
?
_getAuthnContext(self)
Gets the context used to authenticate the subject.
source code
 
_setAuthnContext(self, value)
Sets the context used to authenticate the subject.
source code

Inherited from common.SAMLObject: __getstate__, __init__, __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 = 'AuthnStatement'
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 = 'AuthnStatementType'
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 AUTHN_INSTANT_ATTRIB_NAME = 'AuthnInstant'
AuthnInstant attribute name
string SESSION_INDEX_ATTRIB_NAME = 'SessionIndex'
SessionIndex attribute name
string SESSION_NOT_ON_OR_AFTER_ATTRIB_NAME = 'SessionNotOnOrAfter'
SessionNoOnOrAfter attribute name
Properties [hide private]

Inherited from common.SAMLObject: qname

Inherited from object: __class__

Method Details [hide private]

_getAuthnInstant(self)

source code 

Abstract method. Gets the time when the authentication took place.

Returns: datetime.datetime
the time when the authentication took place
Raises:
  • NotImplementedError - abstract method

_setAuthnInstant(self, value)

source code 

Sets the time when the authentication took place.

Parameters:
  • value (datetime.datetime) - the time when the authentication took place
Raises:
  • NotImplementedError - abstract method

_getSessionIndex(self)

source code 

Get the session index between the principal and the authenticating authority.

Returns: ?
the session index between the principal and the authenticating authority
Raises:
  • NotImplementedError - abstract method

_setSessionIndex(self, value)

source code 

Sets the session index between the principal and the authenticating authority.

Parameters:
  • value (?) - the session index between the principal and the authenticating authority
Raises:
  • NotImplementedError - abstract method

_getSessionNotOnOrAfter(self)

source code 

Get the time when the session between the principal and the SAML authority ends.

Returns: datetime.datetime
the time when the session between the principal and the SAML authority ends
Raises:
  • NotImplementedError - abstract method

_setSessionNotOnOrAfter(self, value)

source code 

Set the time when the session between the principal and the SAML authority ends.

Parameters:
  • value (datetime.datetime) - the time when the session between the principal and the SAML authority ends
Raises:
  • NotImplementedError - abstract method

_getSubjectLocality(self)

source code 

Get the DNS domain and IP address of the system where the principal was authenticated.

Returns: ?
the DNS domain and IP address of the system where the principal was authenticated
Raises:
  • NotImplementedError - abstract method

_setSubjectLocality(self, value)

source code 

Set the DNS domain and IP address of the system where the principal was authenticated.

Parameters:
  • value (?) - the DNS domain and IP address of the system where the principal was authenticated
Raises:
  • NotImplementedError - abstract method

_getAuthnContext(self)

source code 

Gets the context used to authenticate the subject.

Returns: ?
the context used to authenticate the subject
Raises:
  • NotImplementedError - abstract method

_setAuthnContext(self, value)

source code 

Sets the context used to authenticate the subject.

Parameters:
  • value (?) - the context used to authenticate the subject
Raises:
  • NotImplementedError - abstract method

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)