PingGateway

CachingJwkSetService

Service for caching a JWK set from a URI.

Usage

{
  "name": string,
  "type": "CachingJwkSetService",
  "config": {
    "endpointHandler": Handler reference,
    "cacheTimeout": configuration expression<duration>,
    "cacheMissTimeout": configuration expression<duration>,
    "cacheMaxSize": configuration expression<number>
  }
}

Properties

"endpointHandler": IdmService reference, optional

The Handler to use to get the JWK set.

Default: The default ForgeRockClientHandler

"cacheTimeout": duration, optional

Reload the cache after this duration.

Default: 2 minutes

"cacheMissTimeout": duration, optional

Reload the cache after this duration when a JWK isn’t found in the cache.

Default: 2 minutes

"cacheMaxSize": number, optional

The maximum number of JWKs in the cache.

Default: 500