ExamGecko
Question list
Search
Search

Related questions











Question 239 - 350-401 discussion

Report
Export

What is the structure of a JSON web token?

A.

three parts separated by dots: header payload, and signature

Answers
A.

three parts separated by dots: header payload, and signature

B.

header and payload

Answers
B.

header and payload

C.

three parts separated by dots: version header and signature

Answers
C.

three parts separated by dots: version header and signature

D.

payload and signature

Answers
D.

payload and signature

Suggested answer: A

Explanation:

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.

JSON Web Tokens are composed of three parts, separated by a dot (.): Header, Payload, Signature. Therefore, a JWT typically looks like the following: xxxxx.yyyyy.zzzzz The header typically consists of two parts: the type of the token, which is JWT, and the signing algorithm being used, such as HMAC SHA256 or RSA.

The second part of the token is the payload, which contains the claims. Claims are statements about an entity (typically, the user) and additional data.

To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that.

Reference: https://jwt.io/introduction/

asked 10/10/2024
john lopez
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first