Class TokenCacheConfiguration
- java.lang.Object
-
- com.cumulocity.microservice.security.annotation.TokenCacheConfiguration
-
@Configuration @AutoConfigureAfter(EnableTenantOptionSettingsConfiguration.class) public class TokenCacheConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description TokenCacheConfiguration(Optional<MicroserviceSettingsService> settingsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtAuthenticatedTokenCache
jwtAuthenticatedTokenCache(int jwtGuavaCacheMaxSize, int jwtGuavaCacheExpireAfterAccess, int jwtCacheExpireInSeconds)
-
-
-
Constructor Detail
-
TokenCacheConfiguration
public TokenCacheConfiguration(Optional<MicroserviceSettingsService> settingsService)
-
-
Method Detail
-
jwtAuthenticatedTokenCache
@Bean @ConditionalOnMissingBean public JwtAuthenticatedTokenCache jwtAuthenticatedTokenCache(@Value("${cache.guava.maxSize:10000}") int jwtGuavaCacheMaxSize, @Value("${cache.guava.expireAfterAccessInMinutes:10}") int jwtGuavaCacheExpireAfterAccess, @Value("${jwt.cache.guava.expireInSeconds:0}") int jwtCacheExpireInSeconds)
-
-