The class DefaultJWKSetCache of nimbus-jose-jwt has two fields, lifespan and refreshTime. From Java docs – lifespan – The lifespan of the cached JWK set before it expires, negative means no expiration. refreshTime – The time after which the cached JWK set is marked for refresh, negative if not specified. Should be shorter or equal to the lifespan. What is the
Tag: nimbus-jose-jwt
Unable to parse JWK in Java
I implemented a rest authorization server that returns the public-key for a given keyId in the JWK format using the com.nimbusds:nimbus-jose-jwt:9.13 package. The code looks something like this: This code returns a JWK key in the following format: On the client side (java), I try to parse the jwk with the following code: However, the client is unable to parse