def __init__(self, settings, response):
        """
        Constructs the response object.

        :param settings: The setting info
        :type settings: OneLogin_Saml2_Setting object

        :param response: The base64 encoded, XML string containing the samlp:Response
        :type response: string
        """
        self.__settings = settings
        self.__error = None
        self.response = b64decode(response)
        self.document = fromstring(self.response, forbid_dtd=True)
        self.decrypted_document = None
        self.encrypted = None
        self.valid_scd_not_on_or_after = None

        # Quick check for the presence of EncryptedAssertion
        encrypted_assertion_nodes = self.__query('/samlp:Response/saml:EncryptedAssertion')
        if encrypted_assertion_nodes:
            decrypted_document = deepcopy(self.document)
            self.encrypted = True
            self.decrypted_document = self.__decrypt_assertion(decrypted_document)
def __init__ ( self , settings , response ) : self . __settings = settings self . __error = None self . response = b64decode ( response ) self . document = fromstring ( self . response , forbid_dtd = True ) self . decrypted_document = None self . encrypted = None self . valid_scd_not_on_or_after = None encrypted_assertion_nodes = self . __query ( '/samlp:Response/saml:EncryptedAssertion' ) if encrypted_assertion_nodes : decrypted_document = deepcopy ( self . document ) self . encrypted = True self . decrypted_document = self . __decrypt_assertion ( decrypted_document )
Constructs the response object.

        :param settings: The setting info
        :type settings: OneLogin_Saml2_Setting object

        :param response: The base64 encoded, XML string containing the samlp:Response
        :type response: string