function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shiran FernandoShiran Fernando 

Equivalent of Nimbus JOSE+JWT in Apex

Hello Folks,

Does any of you know whether there is an equivalent implementation of Nimbus JOSE+JWT in Apex? 

What I'm trying to do is port some Java code written using Nimbus JOSE+JWT to generate five part encoded and encrypted JWT to Apex. I think the platform support available JWS, JWT and Crypto classes is limited to achieve this. 

Your input is highly appreciated.

Thanks in advance!
 
Shiran FernandoShiran Fernando
Actually, what I want to know is how to encrypt a JWT claims string using a stored certificate. Are the methods in Crypto class can handle this?