#NEWLINE# def _validate_iat( self , payload , now , leeway ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# iat = int ( now [ 'iat' ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise DecodeError ( 'Issued At claim (iat) must be an integer.' ) #NEWLINE# #UNINDENT# if ( iat > ( now + leeway ) ) : #NEWLINE# #INDENT# raise InvalidIssuedAtError ( 'Issued At claim (iat) cannot be in the future.' )