JWS 1 (18.12.2022 3M) Flashcards

1
Q

Name RFC number of JWS.

A

RFC 7515

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What JWS stands for?

A

JWS is JSON Web Signature. A data structure representing a digitally signed or MACed message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What JWS is used for?

A

To provide integrity protection for an arbitrary sequence of octets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does JWS secure content?

A

JSON Web Signature (JWS) represents content secured with digital signatures or Message Authentication Codes (MACs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name serializations of JWS.

A

Two closely related serializations for JWSs are defined.

  1. The JWS Compact Serialization
  2. JWS JSON Serialization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name purpose of JWS Compact Serialization.

A

The JWS Compact Serialization is a compact, URL-safe representation intended for space-constrained environments such as HTTP Authorization headers and URI query parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does JWS JSON Serialization represent JWS?

A

The JWS JSON Serialization represents JWS as JSON object.

This representation is neither optimized for compactness nor URL-safe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is JWS payload?

A

The sequence of octets to be secured – a.k.a. the message. The payload can contain an arbitrary sequence of octets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is JWS Signature?

A

Digital signature or MAC over the JWS Protected Header and the JWS Payload.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Header Parameter?

A

A name/value pair that is member of the JOSE Header.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What base64 encoding is used for JWS?

A

Base64 encoding using the URL- and filename-safe character set defined in Section 5 of RFC 4648 (‘-‘ instead of ‘+’ and ‘_’ instead of ‘/’) with all trailing ‘=’ characters omitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can you use multiple signatures with JWS Compact Serialization?

A

No.

But JWS JSON Serialization enables multiple digital signatures and/or MACs to be applied to the same content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is unsecured JWS?

A

A JWS that provides no integrity protection. Unsecured JWSs use the “alg” value “none”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is StringOrURI? How values of this type are compared?

A

The same as for JWT.

A JSON string value, with the additional requirement, that while arbitrary string values MAY be used, any value containing a “:”
character MUST be a URI.

StringOrURI values are compared as case-sensitive strings with no transformations or canonicalizations applied.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does JOSE stand for?

A

JOSE (Javascript Object Signing And Encryption) describes the cryptographic operations used when creating JWS or JWE.

This is not HTTP header. It looks like a JSON object. For example {“typ”:”JWT”, “alg”:”HS256”}

It’s important to understand that JOSE header is a part of JWS and JWE standards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly