Visual RFC.
ALL RFCs / RFC 7519
Read the RFC ↗
RFC 7519 / PROTECTION

Signing is not hiding

04

Integrity and confidentiality solve different problems; nesting can combine them.

RFC 7519 · § 11.2EXAMPLE
4 / 4
04
Encrypt the signed token.

The outer encryption protects the inner signed token.

Signing is not hidingA signature seal protects readable claims while a locked envelope represents encrypted plaintext; nesting combines them.Integrity and secrecy are different{ claims }readable JSONJWSreadable, protectedJWEencrypted plaintextnested: sign, then encrypt

Key idea: A signed payload can remain readable.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 7519

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗