Visual RFC.
ALL RFCs / RFC 7515
Read the RFC ↗

RFC 7515 / START HERE

JWS, before the details

JWS: JSON Web Signature

JWS represents content protected with a digital signature or a message authentication code. It describes how the protected content and its integrity information are packaged.

The idea in one picture

  1. A producer protects content

  2. JWS carries content and proof

  3. A recipient verifies integrity

A simplified picture of the idea; the chapters explain the actual mechanisms.

Why it exists

A recipient may need to detect tampering and verify who could have produced a message. Signing does not hide the message content.

A familiar example

A service signs a token; another service verifies its integrity before accepting its contents.

Helpful background

You can start here without reading another RFC. If these ideas are unfamiliar, these short introductions may help.

What you’ll learn next

Begin with chapter one, or choose a topic.

  1. What the signature coversIn the default compact form, signing covers the encoded protected header, a dot, and the encoded payload.
  2. Verification is a gateA consumer verifies the signature or MAC before treating the protected content as authenticated.
  3. Protected and unprotected headersJWS JSON serialization can carry header values outside the signature’s protection.
  4. One payload, several signaturesThe general JSON serialization can associate several signatures with one payload.
  5. Authenticity does not stop replayA valid signed message can be copied and submitted again.
Start with chapter one →

This introduction explains RFC 7515 (2015). Read the original RFC ↗