#NEWLINE# def dumps( self , obj , salt = None , header_fields = None ) : #NEWLINE# #INDENT# 'Like :meth:`~Serializer.dumps` but creates a JSON Web Signature.  It\n        also allows for specifying additional fields to be included in the JWS\n        Header.\n        ' #NEWLINE# header = self . make_header ( header_fields ) #NEWLINE# signer = self . make_signer ( salt , self . algorithm ) #NEWLINE# return signer . sign ( self . dump_payload ( header , obj ) )