JWE
JWE Functions
getHeader | JWE.getHeader( ) | Returns the header for the JWS |
getPayload | JWE.getPayload( ) | |
getPlainJWT | JWE.getPlainJWT( ) | Returns the Payload of the JWE as a JWT Object |
getHeader | JWE.getHeader( ) | Returns the header for the JWS |
getPayload | JWE.getPayload( ) | |
getPlainJWT | JWE.getPlainJWT( ) | Returns the Payload of the JWE as a JWT Object |
JWE
represents a parsed JWE (JSON Web Encryption) Object.JWE represents encrypted content using JSON data structures and base64url encoding. The representation consists of three parts: the JWE Header, the JWE Encrypted Key, and the JWE Cipher text. The three parts are base64url-encoded for transmission, and typically represented as the concatenation of the encoded strings in that order, with the three strings being separated by period (".") characters.
Header Section
The header consist of information relating to:
Payload
The payload contains the data for the JWT. Using the JWTBuilder to generate a JWT object and
An example payload:
The following show an example Base64url encoding the bytes of the UTF-8 representation of the JWE Header yields this Encoded JWE Header value: