Package ndg :: Package saml :: Package saml2 :: Package binding :: Package soap :: Package client :: Module requestbase :: Class RequestBaseSOAPBinding
[hide private]

Class RequestBaseSOAPBinding

source code


SAML Request Base SOAP Binding

Nested Classes [hide private]
  QUERY_TYPE
SAML 2.0 Core RequestAbstractType
Instance Methods [hide private]
 
__init__(self, **kw)
Create SOAP Client for a SAML Subject Query
source code
 
makeQuery(self) source code
 
addQueryAttributes(self, query) source code
 
_getIssuer(self) source code
 
_setIssuer(self, value) source code
 
_getIssuerFormat(self) source code
 
_setIssuerFormat(self, value) source code
 
_getIssuerName(self) source code
 
_setIssuerName(self, value) source code
 
_getVerifyTimeConditions(self) source code
 
_setVerifyTimeConditions(self, value) source code
 
_getClockSkewTolerance(self) source code
 
_setClockSkewTolerance(self, value) source code
 
_validateQueryParameters(self, query)
Perform sanity check immediately before creating the query and sending it
source code
 
_initSend(self, query)
Perform any final initialisation prior to sending the query - derived classes may overload to specify as required
source code
 
_verifyTimeConditions(self, response)
Verify time conditions set in a response
source code
 
send(self, query, **kw)
Make an attribute query to a remote SAML service
source code

Inherited from SOAPBinding: __getstate__, __setattr__, __setstate__, parseConfig, parseKeywords

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

Class Methods [hide private]

Inherited from SOAPBinding: fromConfig, fromKeywords

Static Methods [hide private]

Inherited from SOAPBinding: isIterable

Class Variables [hide private]
  ISSUER_NAME_OPTNAME = 'issuerName'
  ISSUER_FORMAT_OPTNAME = 'issuerFormat'
  CLOCK_SKEW_OPTNAME = 'clockSkewTolerance'
  VERIFY_TIME_CONDITIONS_OPTNAME = 'verifyTimeConditions'
  CONFIG_FILE_OPTNAMES = ('issuerName', 'issuerFormat', 'clockSk...
  __PRIVATE_ATTR_PREFIX = '__'

Inherited from SOAPBinding: DESERIALISE_OPTNAME, REQUEST_ENVELOPE_CLASS_OPTNAME, RESPONSE_ENVELOPE_CLASS_OPTNAME, SERIALISE_OPTNAME, SOAP_ACTION

Properties [hide private]
  issuer
Issuer
  issuerFormat
Issuer format
  issuerName
Name of issuer of SAML Subject Query
  verifyTimeConditions
Set to True to verify any time Conditions set in the returned response assertions
  clockSkewTolerance
Allow a tolerance in seconds for SAML Query issueInstant parameter check and assertion condition notBefore and notOnOrAfter times to allow for clock skew
  __clockSkewTolerance
  __issuer
  __issuerFormat
  __issuerName
  __verifyTimeConditions

Inherited from SOAPBinding: client, deserialise, requestEnvelopeClass, serialise

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

Create SOAP Client for a SAML Subject Query

Overrides: object.__init__

_verifyTimeConditions(self, response)

source code 

Verify time conditions set in a response

Parameters:
  • response (ndg.saml.saml2.core.Response) - SAML Response returned from remote service
Raises:

send(self, query, **kw)

source code 

Make an attribute query to a remote SAML service

Parameters:
  • uri (basestring) - uri of service. May be omitted if set from request.url
  • request (ndg.security.common.soap.UrlLib2SOAPRequest) - SOAP request object to which query will be attached defaults to ndg.security.common.soap.client.UrlLib2SOAPRequest
Overrides: SOAPBinding.send

Class Variable Details [hide private]

CONFIG_FILE_OPTNAMES

Value:
('issuerName',
 'issuerFormat',
 'clockSkewTolerance',
 'verifyTimeConditions')

Property Details [hide private]

issuer

Issuer

Get Method:
_getIssuer(self)
Set Method:
_setIssuer(self, value)

issuerFormat

Issuer format

Get Method:
_getIssuerFormat(self)
Set Method:
_setIssuerFormat(self, value)

issuerName

Name of issuer of SAML Subject Query

Get Method:
_getIssuerName(self)
Set Method:
_setIssuerName(self, value)

verifyTimeConditions

Set to True to verify any time Conditions set in the returned response assertions

Get Method:
_getVerifyTimeConditions(self)
Set Method:
_setVerifyTimeConditions(self, value)

clockSkewTolerance

Allow a tolerance in seconds for SAML Query issueInstant parameter check and assertion condition notBefore and notOnOrAfter times to allow for clock skew

Get Method:
_getClockSkewTolerance(self)
Set Method:
_setClockSkewTolerance(self, value)