@classmethod<EOL><INDENT>def _from_jwt(cls, headers, payload, key=None):<DEDENT>
jwt = Jwt(<EOL>secret_key=key,<EOL>issuer=payload.get('<STR_LIT>', None),<EOL>subject=payload.get('<STR_LIT>', None),<EOL>algorithm=headers.get('<STR_LIT>', None),<EOL>valid_until=payload.get('<STR_LIT>', None),<EOL>nbf=payload.get('<STR_LIT>', None),<EOL>)<EOL>jwt.__decoded_payload = payload<EOL>jwt.__decoded_headers = headers<EOL>return jwt<EOL>
Class specific implementation of from_jwt which should take jwt components and return
and instance of this Class with jwt information loaded.
:return: Jwt object containing the headers, payload and key