@staticmethod<EOL><INDENT>def decode_base64_and_inflate(value, ignore_zip=False):<DEDENT>
encoded = OneLogin_Saml2_Utils.b64decode(value)<EOL>try:<EOL><INDENT>return zlib.decompress(encoded, -<NUM_LIT:15>)<EOL><DEDENT>except zlib.error:<EOL><INDENT>if not ignore_zip:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>return encoded<EOL>
base64 decodes and then inflates according to RFC1951
:param value: a deflated and encoded string
:type value: string
:param ignore_zip: ignore zip errors
:returns: the string after decoding and inflating
:rtype: string