I want to send a java object to a server and send its signature through another way to the server. for this, I need to convert it to JSON and then create a signature form JSON
. I know that I can create a signed token with JOSE but it will also attach object data to the token, and it makes token too long.
Also, It is required to sign one object multiple time by different signers.
Is there any standard or tool (at least for java/javascript) to guaranty that conversation of JSON to string always represent in unique format?
Is it possible to omit the second part of JWT which contains JSON data and create in using an arbitrary JSON creator?
If non of the answers are yes, what should I do?