Package io.quarkus.oidc
Class OidcTenantConfig.Jwks
- java.lang.Object
-
- io.quarkus.oidc.OidcTenantConfig.Jwks
-
- Enclosing class:
- OidcTenantConfig
public static class OidcTenantConfig.Jwks extends Object
-
-
Field Summary
Fields Modifier and Type Field Description int
cacheSize
Maximum number of JWK keys that can be cached.Duration
cacheTimeToLive
Number of minutes a JWK key can be cached for.Optional<Duration>
cleanUpTimerInterval
Cache timer interval.boolean
resolveEarly
If JWK verification keys should be fetched at the moment a connection to the OIDC provider is initialized.
-
Constructor Summary
Constructors Constructor Description Jwks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCacheSize()
Duration
getCacheTimeToLive()
Optional<Duration>
getCleanUpTimerInterval()
boolean
isResolveEarly()
void
setCacheSize(int cacheSize)
void
setCacheTimeToLive(Duration cacheTimeToLive)
void
setCleanUpTimerInterval(Duration cleanUpTimerInterval)
void
setResolveEarly(boolean resolveEarly)
-
-
-
Field Detail
-
resolveEarly
@ConfigItem(defaultValue="true") public boolean resolveEarly
If JWK verification keys should be fetched at the moment a connection to the OIDC provider is initialized. Disabling this property will delay the key acquisition until the moment the current token has to be verified. Typically it can only be necessary if the token or other telated request properties provide an additional context which is required to resolve the keys correctly.
-
cacheSize
@ConfigItem(defaultValue="10") public int cacheSize
Maximum number of JWK keys that can be cached. This property will be ignored if theresolveEarly
property is set to true.
-
cacheTimeToLive
@ConfigItem(defaultValue="10M") public Duration cacheTimeToLive
Number of minutes a JWK key can be cached for. This property will be ignored if theresolveEarly
property is set to true.
-
cleanUpTimerInterval
@ConfigItem public Optional<Duration> cleanUpTimerInterval
Cache timer interval. If this property is set then a timer will check and remove the stale entries periodically. This property will be ignored if theresolveEarly
property is set to true.
-
-
Method Detail
-
getCacheSize
public int getCacheSize()
-
setCacheSize
public void setCacheSize(int cacheSize)
-
getCacheTimeToLive
public Duration getCacheTimeToLive()
-
setCacheTimeToLive
public void setCacheTimeToLive(Duration cacheTimeToLive)
-
setCleanUpTimerInterval
public void setCleanUpTimerInterval(Duration cleanUpTimerInterval)
-
isResolveEarly
public boolean isResolveEarly()
-
setResolveEarly
public void setResolveEarly(boolean resolveEarly)
-
-