You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example, the Status List additionally includes the Status Type "SUSPENDED". As the Status Type value for "SUSPENDED" is 0x02 and does not fit into 1 bit, the `bits` is required to be 2. This example illustrates the byte array of a Status List that represents the statuses of 12 Referenced Tokens with a `bits` of 2, requiring 3 bytes (24 bits) for the uncompressed byte array:
322
320
323
-
~~~ ascii-art
324
-
321
+
~~~ python
325
322
status[0] = 0b01
326
323
status[1] = 0b10
327
324
status[2] = 0b00
@@ -367,13 +364,13 @@ The following example illustrates the JSON representation of the Status List wit
367
364
368
365
byte array:
369
366
370
-
~~~
367
+
~~~ python
371
368
[0xb9, 0xa3]
372
369
~~~
373
370
374
371
encoded:
375
372
376
-
~~~json
373
+
~~~json
377
374
{
378
375
"bits": 1,
379
376
"lst": "eNrbuRgAAhcBXQ"
@@ -384,13 +381,13 @@ The following example illustrates the JSON representation of the Status List wit
384
381
385
382
byte array:
386
383
387
-
~~~
384
+
~~~ python
388
385
[0xc9, 0x44, 0xf9]
389
386
~~~
390
387
391
388
encoded:
392
389
393
-
~~~json
390
+
~~~json
394
391
{
395
392
"bits": 2,
396
393
"lst": "eNo76fITAAPfAgc"
@@ -422,19 +419,19 @@ The following example illustrates the CBOR representation of the Status List in
422
419
423
420
byte array:
424
421
425
-
~~~
422
+
~~~ python
426
423
[0xb9, 0xa3]
427
424
~~~
428
425
429
426
encoded (hex):
430
427
431
-
~~~hex
428
+
~~~hex
432
429
a2646269747301636c73744a78dadbb918000217015d
433
430
~~~
434
431
435
432
The following is the CBOR Annotated Hex output of the example above:
436
433
437
-
~~~
434
+
~~~ cbor-pretty
438
435
a2 # map(2)
439
436
64 # string(4)
440
437
62697473 # "bits"
@@ -481,7 +478,7 @@ The following additional rules apply:
481
478
482
479
The following is a non-normative example of a Status List Token in JWT format (in the form header.payload):
483
480
484
-
~~~
481
+
~~~ jwt
485
482
{
486
483
"alg": "ES256",
487
484
"kid": "12",
@@ -528,7 +525,7 @@ The following additional rules apply:
528
525
529
526
The following is a non-normative example of a Status List Token in CWT format in Hex:
@@ -964,6 +960,7 @@ Alternatively, the Status Issuer may use the same web-based key resolution that
964
960
| Status Provider |
965
961
+-----------------+
966
962
~~~
963
+
967
964
If the Issuer of the Referenced Token is a different entity than the Status Issuer, then the keys used for the Status List Token may be cryptographically linked, e.g. by a Certificate Authority through an x.509 PKI. The certificate of the Issuer for the Referenced Token and the Status Issuer should be issued by the same Certificate Authority and the Status Issuer's certificate should utilize [extended key usage](#eku).
968
965
969
966
~~~ ascii-art
@@ -1517,7 +1514,7 @@ for their valuable contributions, discussions and feedback to this specification
1517
1514
1518
1515
The following module adheres to ASN.1 specifications {{X.680}} and {{X.690}}. It defines the OID used for OAuth Status Mechanism Key Extended Key Usage.
1519
1516
1520
-
~~~
1517
+
~~~ ASN.1
1521
1518
<CODE BEGINS>
1522
1519
1523
1520
OauthStatusSigning-EKU
@@ -1583,7 +1580,7 @@ All values that are not mentioned for the examples below can be assumed to be 0
1583
1580
1584
1581
The following example uses a 1-bit Status List (2 possible values):
0 commit comments