Make KeyUse serializable
Issue #330
resolved
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)
-
-
- changed status to open
Thanks for discovering this
-
- changed status to resolved
Resolved in cc59771 , will be released in 7.9
-
7.9 was pushed to Maven Central
- Log in to comment
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