Added basic jws test
This commit is contained in:
parent
2492aa28f3
commit
746300ab42
@ -59,5 +59,9 @@ public class Samples {
|
||||
// original: test_verify: test_verify_of_baked_image
|
||||
public final static Sample SIMPLE_JSON_PNG = new Sample("ob20/simple-badge.png", true);
|
||||
}
|
||||
|
||||
public static final class JWT {
|
||||
public final static Sample SIMPLE_JWT = new Sample("ob20/simple.jwt", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
7
inspector-vc/src/test/resources/ob20/assets/key1.json
Normal file
7
inspector-vc/src/test/resources/ob20/assets/key1.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"@context": "https://w3id.org/openbadges/v2",
|
||||
"id": "http://example.org/key1.json",
|
||||
"type": "CryptographicKey",
|
||||
"owner": "https://example.org/organization.json",
|
||||
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/tyy5CGrCVfGIMrMkVq\nZ5cAKkbLdrNrNFvXNMSazvKj/9VmuALZOjqXl1Od/Ku6q+18sn70p6r25kGRoaU/\nAJNLt36EnRSs9I66xZ3tOY4c9PeWpMC1XbCrUBh1rpx7XQ5wULOMbttEvBf9V2Cl\nCGiNqwqcafrQHoYteAtF4d2zcjNm+xZRQmnVU0CdvXSXeniWjqyif/751/M/xb93\nfeF1AIFS5IGaI1cWca7BG2izKz1DjZxbMlvQVZk1Axz2Uj/FXssyBKmAdCw4EjuF\nqinQBmKwmFvCB3yhMAK6+f1k4hsR/ET/PxwkNQZfu+gkmEAQoYAMSPgGS3xY3LVf\nxwIDAQAB\n-----END PUBLIC KEY-----"
|
||||
}
|
@ -4,5 +4,6 @@
|
||||
"id": "https://example.org/organization.json",
|
||||
"name": "An Example Badge Issuer",
|
||||
"url": "https://example.org",
|
||||
"email": "contact@example.org"
|
||||
"email": "contact@example.org",
|
||||
"publicKey": "http://example.org/key1.json"
|
||||
}
|
@ -9,6 +9,7 @@
|
||||
"identity": "sha256$ecf5409f3f4b91ab60cc5ef4c02aef7032354375e70cf4d8e43f6a1d29891942"
|
||||
},
|
||||
"image": "https://example.org/beths-robot-badge.png",
|
||||
"evidence": "https://example.org/beths-robot-work.html",
|
||||
"issuedOn": "2016-12-31T23:59:59Z",
|
||||
"badge": "https://example.org/robotics-badge.json",
|
||||
"verification": {
|
||||
|
1
inspector-vc/src/test/resources/ob20/simple.jwt
Normal file
1
inspector-vc/src/test/resources/ob20/simple.jwt
Normal file
@ -0,0 +1 @@
|
||||
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJAY29udGV4dCI6Imh0dHBzOi8vdzNpZC5vcmcvb3BlbmJhZGdlcy92MiIsInR5cGUiOiJBc3NlcnRpb24iLCJpZCI6Imh0dHBzOi8vZXhhbXBsZS5vcmcvYmV0aHMtcm9ib3RpY3MtYmFkZ2UuanNvbiIsInJlY2lwaWVudCI6eyJ0eXBlIjoiZW1haWwiLCJoYXNoZWQiOnRydWUsInNhbHQiOiJkZWFkc2VhIiwiaWRlbnRpdHkiOiJzaGEyNTYkZWNmNTQwOWYzZjRiOTFhYjYwY2M1ZWY0YzAyYWVmNzAzMjM1NDM3NWU3MGNmNGQ4ZTQzZjZhMWQyOTg5MTk0MiJ9LCJpbWFnZSI6Imh0dHBzOi8vZXhhbXBsZS5vcmcvYmV0aHMtcm9ib3QtYmFkZ2UucG5nIiwiZXZpZGVuY2UiOiJodHRwczovL2V4YW1wbGUub3JnL2JldGhzLXJvYm90LXdvcmsuaHRtbCIsImlzc3VlZE9uIjoiMjAxNi0xMi0zMVQyMzo1OTo1OVoiLCJiYWRnZSI6Imh0dHBzOi8vZXhhbXBsZS5vcmcvcm9ib3RpY3MtYmFkZ2UuanNvbiIsInZlcmlmaWNhdGlvbiI6eyJ0eXBlIjoic2lnbmVkIiwiY3JlYXRvciI6Imh0dHA6Ly9leGFtcGxlLm9yZy9rZXkxLmpzb24ifX0.i2aO8rusbEupHysBBgxZpZBMtLHrGGI2l3Qi-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