Class org.lightningj.paywall.tokengenerator.AsymmetricKeyTokenGeneratorSpec

8

tests

0

failures

0

ignored

0.279s

duration

100%

successful

Tests

Test Duration Result
Verify that altered token data throws TokenVerifyException 0.005s passed
Verify that asymmetric JWS is correctly signed and algorithm RS256 is used, and can be parsed and verified 0.019s passed
Verify that getIssuerName returns the public key id 0.001s passed
Verify that getTrustedKeysAsJWTKeys builds cache correctly 0.008s passed
Verify that it is not possible to decrypt a token with another asymmetric key 0.010s passed
Verify that it is not possible to decrypt altered data 0.011s passed
Verify that it is possible to encrypt and decrypt using asymmetric encryption. 0.014s passed
Verify that unknown key id throws TokenVerifyException 0.211s passed

Standard output

eyJhbGciOiJSUzI1NiIsImtpZCI6IkVDRDI4NEJDMENFNDQ3QjMifQ.eyJpc3MiOiJFQ0QyODRCQzBDRTQ0N0IzIiwiZXhwIjoxNTY2NzYyNjMzLCJuYmYiOjE1NjY3NjE0MzMsInBheW1lbnQiOnsicHJlSW1hZ2VIYXNoIjoiUjlkbXhkOW1rYXNoNzh5IiwiZGVzY3JpcHRpb24iOiJTb21lIERlc2NyaXB0aW9uIiwib3JkZXJBbW91bnQiOnsidHlwZSI6IkNSWVRPQ1VSUkVOQ1kiLCJ2YWx1ZSI6MTAwMDAsImN1cnJlbmN5Q29kZSI6IkJUQyIsIm1hZ25ldHVkZSI6Ik5PTkUifSwiZXhwaXJlRGF0ZSI6MTU2Njc2MjYzMzM5NH19.v0X2hyKNXoyWZrg4kYJoiG_M7UqE8Bezn2d70IFr4SYTR4UW9-hjNaiJPFmf2Nccl10t6IbWJrcRsWsqx-h8AqgVjUC8zctEvz_RYs8bWl6JSp8_t2XbNbLz_yKiLwiaXjJ-LQ_jWzvQNAcq2jj9eSqLbJChp-yIIqHTDiBTgP0ttSEKXvhUdxa6iztddtbuhcb9mNys1eDV7Zay5pqYZxwJ3Md69ygmOFGgzVJ_CjEvhHaXF_-WmGS_2hBeykNR5tB5u2B6LYcJxkuRMa-VvBMuEaRxlgzgzgIC0t2Kfiy0tgjslJGxjEoF6-TnmvX8TRLY8vyeMQYfXS0GxIXQtQ