Looking at RFC 7515 and RFC 7516, I was trying to understand what the proper mime type for the JWE should be. It looks like JWE and JWS share the JOSE header information, and JWS defines its mime type as application/jose
. JWE has no explicit media type information. But since the name is "jose" and both use JOSE header, I assume both should use the same mime type (also because JOSE stands for ... Signing and Encryption).
In this case, how do I differentiate between signed and/or encrypted messages? By value of the alg
property? Or by presence/value of enc
property?
To summarize:
- Is "application/jose" a mime type to use for JWE? If not, then what should it be?
- If yes, how to reliably tell between JWE and JWS messages?
application/jwt
. – Xymenesapplication/jwt
andapplication/jose
? – Aquiline