Make KeyUse serializable

Issue #330 resolved
Sorin Cazacu created an issue

As of release 7.0, KeyUse has been changed from an enum to a class which is not marked as serializable.

Our service uses java serialization to replicate the collection of JWKs retrieved from OIDC server across service instances. Since KeyUse is not serializable, the upgrade path to the latest library version is blocked.

Comments (4)

  1. Tom Sp

    Also com.nimbusds.jose.jwk.JWK is marked as Serializable which contains the now non-serializable KeyUse. It seems declaring KeyUse as serializable simply has been forgotten with the transition from an enum to a class with release 7.0

  2. Log in to comment