def __init__(self, settings, response):
self.__settings = settings<EOL>self.__error = None<EOL>self.response = b64decode(response)<EOL>self.document = fromstring(self.response, forbid_dtd=True)<EOL>self.decrypted_document = None<EOL>self.encrypted = None<EOL>self.valid_scd_not_on_or_after = None<EOL>encrypted_assertion_nodes = self.__query('<STR_LIT>')<EOL>if encrypted_assertion_nodes:<EOL><INDENT>decrypted_document = deepcopy(self.document)<EOL>self.encrypted = True<EOL>self.decrypted_document = self.__decrypt_assertion(decrypted_document)<EOL><DEDENT>
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