Class TokenCacheConfiguration

java.lang.Object
com.cumulocity.microservice.security.configuration.TokenCacheConfiguration

@Configuration @AutoConfigureAfter(EnableTenantOptionSettingsConfiguration.class) public class TokenCacheConfiguration extends Object
  • Constructor Details

  • 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)