Given a request
When its handled by a RestResource
And the request header, Accept: application/jwt
Then return a signed jwt
And the set the response header, Content-Type: application/jwt
Given a request
When its handled by a RestResource
And the request header, Accept: application/jwe
Then return an encrypted jwt
And the set the response header, Content-Type: application/jwe
Given a request
When its handled by a RestResource
And the request header,
Accept: application/jwtThen return a signed jwt
And the set the response header,
Content-Type: application/jwtGiven a request
When its handled by a RestResource
And the request header,
Accept: application/jweThen return an encrypted jwt
And the set the response header,
Content-Type: application/jwe