All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pmp.partner.config.AuthRestTemplateConfig Maven / Gradle / Ivy

package io.mosip.pmp.partner.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.client.RestTemplate;

import io.mosip.pmp.keycloak.impl.AccessTokenResponse;
import io.mosip.pmp.keycloak.impl.MemoryCache;

@Configuration
public class AuthRestTemplateConfig {

	@Primary
	@Bean(name = "authRestTemplate")
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}
	
	@Bean
	public MemoryCache memoryCache() {
		return new MemoryCache<>(1);
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy