FusionAuth/fusionauth-jwt

Need Ability to Extend `Header` class

mdemille opened this issue · 2 comments

I am using this library in support of the STIR/SHAKEN protocol in telecom. The RFC specifies that the Header of a JWT must have its keys in lexicographical order.

The JWTEncoder class manually builds a header object and then allows a Consumer<Header> to customize it. I would like to be able to subclass the Header class so that I have tighter/easier control over the fields in that class, and still have it used by the encoder.

Released. Available in 5.3.0.

Thank you!