Signing is not hiding
04Integrity and confidentiality solve different problems; nesting can combine them.
The outer encryption protects the inner signed token.
Key idea: A signed payload can remain readable.
Rules & examples
A signed payload can remain readable.
- A JWS protects integrity through a signature or MAC, depending on its algorithm.
- A JWE protects the plaintext through encryption and authenticated integrity.
- For combined signing and encryption, this RFC normally recommends signing first and then encrypting.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.