Class TokenCacheConfiguration
java.lang.Object
com.cumulocity.microservice.security.configuration.TokenCacheConfiguration
@Configuration
@AutoConfigureAfter(EnableTenantOptionSettingsConfiguration.class)
public class TokenCacheConfiguration
extends Object
-
Constructor Summary
ConstructorDescriptionTokenCacheConfiguration
(Optional<MicroserviceSettingsService> settingsService) -
Method Summary
Modifier and TypeMethodDescriptionjwtAuthenticatedTokenCache
(int jwtGuavaCacheMaxSize, int jwtGuavaCacheExpireAfterAccess, int jwtCacheExpireInSeconds)
-
Constructor Details
-
TokenCacheConfiguration
-
-
Method Details
-
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)
-