Class DefaultImplConfiguration
- java.lang.Object
-
- io.mosip.kernel.auth.defaultimpl.config.DefaultImplConfiguration
-
@Configuration public class DefaultImplConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description DefaultImplConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemoryCache<String,AccessTokenResponse>memoryCache()RestInterceptorrestInterceptor(MemoryCache<String,AccessTokenResponse> memoryCache, TokenValidator tokenValidator, org.springframework.web.client.RestTemplate restTemplate)org.springframework.web.client.RestTemplaterestTemplate()
-
-
-
Method Detail
-
restTemplate
@Primary @Bean(name="authRestTemplate") public org.springframework.web.client.RestTemplate restTemplate()
-
memoryCache
@Bean public MemoryCache<String,AccessTokenResponse> memoryCache()
-
restInterceptor
@Bean public RestInterceptor restInterceptor(@Autowired MemoryCache<String,AccessTokenResponse> memoryCache, @Autowired TokenValidator tokenValidator, @Qualifier("authRestTemplate") @Autowired org.springframework.web.client.RestTemplate restTemplate)
-
-