Compact serialization represents a JOSE object as dot-separated, base64url-encoded components. For JWE, it packages the encrypted key, initialization vector, ciphertext, and authentication tag into one compact string. section 7.2.2
A compact JWE contains five ordered components:
- Base64url-encoded JOSE header. section 7.2.2
Reading the structure
A JWE using RSA-OAEP for key encryption and A256GCM for content encryption can be represented as five encoded segments separated by four dots. JSON serialization instead places the same information in a JSON data structure.
