Annotation Type EnableOAuth2Client
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) @Import(OAuth2ClientConfiguration.class) public @interface EnableOAuth2Client
Enables OAuth 2.0 clients for retrieving accesstokens using the client_credentials and on-behalf-of flows.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleancacheEnabledEnable caching for OAuth 2.0 access_token response in theOAuth2AccessTokenServicelongcacheEvictSkewSet skew time in seconds for cache eviction, i.e.longcacheMaximumSizeSet the maximum cache size
-
-
-
Element Detail
-
cacheEnabled
boolean cacheEnabled
Enable caching for OAuth 2.0 access_token response in theOAuth2AccessTokenService- Returns:
- default value false, true if enabled
- Default:
- false
-
-
-
cacheEvictSkew
long cacheEvictSkew
Set skew time in seconds for cache eviction, i.e. the amount of time a cache entry should be evicted before the actual "expires_in" inOAuth2AccessTokenResponse- Returns:
- the skew in seconds
- Default:
- 10L
-
-