Question 651 · 1003 in bank
Select 3JSON web tokens (JWT) are used to secure JSON based communications. Which of the following fields make up a JWT? (Choose three.)
Show answer
Answer: ACE
Explanation
A JWT (JSON Web Token) is comprised of three parts: Header: A JSON object that describes the type of token and the cryptographic algorithm used to secure it. It typically consists of two fields: "alg" for algorithm and "typ" for type. Payload: A JSON object that contains the claims (statements) about the user or system that the token represents. The claims can include user ID, name, email, role, and any other relevant information. The payload may also contain additional custom claims, and the entire payload is typically encrypted using the algorithm specified in the header. Signature: A hash that is used to verify the authenticity of the token. The signature is computed by combining the encoded header, the encoded payload, and a secret key known only to the issuer, using the algorithm specified in the header. Together, these three components make up a JWT, which is typically used for authentication and authorization in web applications and APIs.
Source: Adapted from community discussion — Vlad_Is_Love_ua

