Package info.ejava.examples.svc.https
Class ClientConfiguration
java.lang.Object
info.ejava.examples.svc.https.ClientConfiguration
@SpringBootConfiguration(proxyBeanMethods=false)
@EnableAutoConfiguration
public class ClientConfiguration
extends Object
A test configuration used by remote IT test clients.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthnUrl(info.ejava.examples.common.web.ServerConfig itServerConfig) org.springframework.web.client.RestTemplateauthnUser(org.springframework.boot.web.client.RestTemplateBuilder builder, org.springframework.http.client.ClientHttpRequestFactory requestFactory) org.springframework.http.client.ClientHttpRequestFactoryhttpsRequestFactory(nl.altindag.ssl.SSLFactory sslFactory) info.ejava.examples.common.web.ServerConfignl.altindag.ssl.SSLFactorysslFactory(org.springframework.core.io.ResourceLoader resourceLoader, info.ejava.examples.common.web.ServerConfig serverConfig)
-
Field Details
-
username
-
password
-
-
Constructor Details
-
ClientConfiguration
public ClientConfiguration()
-
-
Method Details
-
itServerConfig
@Bean @ConfigurationProperties("it.server") public info.ejava.examples.common.web.ServerConfig itServerConfig() -
authnUrl
-
httpsRequestFactory
@Bean public org.springframework.http.client.ClientHttpRequestFactory httpsRequestFactory(@Autowired(required=false) nl.altindag.ssl.SSLFactory sslFactory) -
sslFactory
@Bean @ConditionalOnExpression("!T(org.springframework.util.StringUtils).isEmpty(\'${it.server.trust-store:}\')") public nl.altindag.ssl.SSLFactory sslFactory(org.springframework.core.io.ResourceLoader resourceLoader, info.ejava.examples.common.web.ServerConfig serverConfig) throws IOException - Throws:
IOException
-
authnUser
@Bean public org.springframework.web.client.RestTemplate authnUser(org.springframework.boot.web.client.RestTemplateBuilder builder, org.springframework.http.client.ClientHttpRequestFactory requestFactory)
-