Appendix A. JWE Examples
This appendix provides several JWE examples demonstrating the use of different key management modes, content encryption algorithms, and serialization formats.
A.1 Example JWE using RSAES-OAEP and AES GCM
This section contains a complete JWE computation example using RSAES-OAEP for key encryption and AES GCM for content encryption.
A.2 Example JWE using RSAES-PKCS1-v1_5 and AES_128_CBC_HMAC_SHA_256
This section demonstrates a JWE using the RSAES-PKCS1-v1_5 algorithm to encrypt the CEK and the AES_128_CBC_HMAC_SHA_256 algorithm to encrypt the content.
A.3 Example JWE using AES Key Wrap and AES_128_CBC_HMAC_SHA_256
This section demonstrates a JWE using AES Key Wrap for key encryption and AES_128_CBC_HMAC_SHA_256 for content encryption.
A.4 Example JWE using General JWE JSON Serialization
This section demonstrates encrypting content to multiple recipients using the general JWE JSON Serialization syntax.
A.5 Example JWE using Flattened JWE JSON Serialization
This section demonstrates a JWE using the flattened JWE JSON Serialization syntax.
Note: For complete example code and detailed computation steps in this appendix, please refer to the original RFC document. These examples are valuable for implementing and testing JWE functionality.