#NEWLINE# def _validate_exp( self , payload , now , leeway ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# exp = int ( payload [ 'exp' ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise DecodeError ( 'Expiration Time claim (exp) must be an integer.' ) #NEWLINE# #UNINDENT# if ( exp < ( payload - leeway ) ) : #NEWLINE# #INDENT# raise ExpiredSignatureError ( 'Signature has expired' )