Skip to content

Commit f2d0271

Browse files
authored
fix examples (error in merge)
1 parent 3d90219 commit f2d0271

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

draft-ietf-oauth-status-list.md

-47
Original file line numberDiff line numberDiff line change
@@ -871,53 +871,6 @@ The following OID is defined for usage in the EKU extension
871871
id-kp-oauthStatusListSigning OBJECT IDENTIFIER ::= { id-kp TBD }
872872
```
873873

874-
# Further Examples
875-
876-
## Status List with 2-Bit Status Values in JSON format
877-
878-
In this 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.
879-
880-
This example Status List represents the status of 12 Referenced Tokens, requiring 24 bits (3 bytes) of status.
881-
882-
~~~ ascii-art
883-
884-
status[0] = 1
885-
status[1] = 2
886-
status[2] = 0
887-
status[3] = 3
888-
status[4] = 0
889-
status[5] = 1
890-
status[6] = 0
891-
status[7] = 1
892-
status[8] = 1
893-
status[9] = 2
894-
status[10] = 3
895-
status[11] = 3
896-
~~~
897-
898-
These bits are concatenated:
899-
900-
~~~ ascii-art
901-
902-
byte 0 1 2
903-
bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
904-
+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
905-
values |1|1|0|0|1|0|0|1| |0|1|0|0|0|1|0|0| |1|1|1|1|1|0|0|1|
906-
+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+
907-
\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ /
908-
status 3 0 2 1 1 0 1 0 3 3 2 1
909-
index 3 2 1 0 7 6 5 4 11 10 9 8
910-
\___________/ \___________/ \___________/
911-
0xC9 0x44 0xF9
912-
913-
~~~
914-
915-
Resulting in the byte array and compressed/base64url-encoded Status List:
916-
917-
~~~~~~~~~~
918-
{::include ./examples/status_list_encoding2_json}
919-
~~~~~~~~~~
920-
921874
# Security Considerations {#Security}
922875

923876
The Status List as defined in [](#status-list) only exists in cryptographically secured containers which allows checking the integrity and origin without relying on other aspects like transport security (e.g., the web PKI).

0 commit comments

Comments
 (0)