-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcontract.json
More file actions
38 lines (38 loc) · 2.55 KB
/
Copy pathcontract.json
File metadata and controls
38 lines (38 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"jwe": [
{ "alg": "RSA-OAEP-256", "enc": "A256GCM", "accepted": true },
{ "alg": "RSA-OAEP", "enc": "A256GCM", "accepted": false },
{ "alg": "RSA-OAEP-256", "enc": "A128GCM", "accepted": false },
{ "alg": "RSA-OAEP-256", "enc": "A256CBC-HS512", "accepted": false }
],
"badRequests": [
{ "name": "invalid JSON", "rawBody": "{", "reason": "invalid JSON body" },
{ "name": "array envelope", "rawBody": "[]", "reason": "invalid envelope" },
{ "name": "null envelope", "rawBody": "null", "reason": "invalid envelope" },
{ "name": "wrong version", "overrides": { "type": "wrong" }, "reason": "unsupported envelope type" },
{ "name": "boolean channel", "overrides": { "channel": true }, "reason": "unsupported channel" },
{ "name": "numeric string channel", "overrides": { "channel": "1" }, "reason": "unsupported channel" },
{ "name": "null mode", "overrides": { "mode": null }, "reason": "unsupported mode" },
{ "name": "boolean mode", "overrides": { "mode": true }, "reason": "unsupported mode" },
{ "name": "false mode", "overrides": { "mode": false }, "reason": "unsupported mode" },
{ "name": "empty encryption", "overrides": { "encryptedDeliveryContext": "" }, "reason": "encryptedDeliveryContext is required" },
{ "name": "blank encryption", "overrides": { "encryptedDeliveryContext": " " }, "reason": "encryptedDeliveryContext is required" },
{ "name": "string TTL", "overrides": { "ttlSeconds": "60" }, "reason": "invalid ttlSeconds" },
{ "name": "null TTL", "overrides": { "ttlSeconds": null }, "reason": "invalid ttlSeconds" },
{ "name": "boolean TTL", "overrides": { "ttlSeconds": true }, "reason": "invalid ttlSeconds" },
{ "name": "fractional TTL", "overrides": { "ttlSeconds": 1.5 }, "reason": "invalid ttlSeconds" },
{ "name": "oversized TTL", "overrides": { "ttlSeconds": 2147483648 }, "reason": "invalid ttlSeconds" },
{ "name": "expired TTL", "overrides": { "ttlSeconds": 0 }, "reason": "ttlSeconds expired" },
{ "name": "negative TTL", "overrides": { "ttlSeconds": -1 }, "reason": "ttlSeconds expired" },
{ "name": "encryption before TTL", "overrides": { "encryptedDeliveryContext": "", "ttlSeconds": "bad" }, "reason": "encryptedDeliveryContext is required" },
{ "name": "channel before mode and TTL", "overrides": { "channel": false, "mode": null, "ttlSeconds": "bad" }, "reason": "unsupported channel" }
],
"incompleteContexts": [
{ "nonce": "" },
{ "nonce": null },
{ "nonce": 123 },
{ "phoneNumber": null },
{ "phoneNumber": "" },
{ "message": " \t\r\n" }
]
}