Interface ClientConfiguration.MaybeSecureClientConfigurationBuilder
- All Superinterfaces:
ClientConfiguration.TerminalClientConfigurationBuilder
- Enclosing interface:
- ClientConfiguration
public static interface ClientConfiguration.MaybeSecureClientConfigurationBuilder
extends ClientConfiguration.TerminalClientConfigurationBuilder
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionusingSsl()
Connect via https
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.usingSsl
(SSLContext sslContext) Connect via https using the givenSSLContext
.
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.usingSsl
(SSLContext sslContext, HostnameVerifier hostnameVerifier) Connect via https using the givensSSLContext
and HostnameVerifierHostnameVerifier
.
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.Methods inherited from interface org.springframework.data.elasticsearch.client.ClientConfiguration.TerminalClientConfigurationBuilder
build, withBasicAuth, withClientConfigurer, withConnectTimeout, withConnectTimeout, withDefaultHeaders, withHeaders, withHttpClientConfigurer, withPathPrefix, withProxy, withSocketTimeout, withSocketTimeout, withWebClientConfigurer
-
Method Details
-
usingSsl
Connect via https
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.- Returns:
- the
ClientConfiguration.TerminalClientConfigurationBuilder
.
-
usingSsl
Connect via https using the givenSSLContext
.
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.- Returns:
- the
ClientConfiguration.TerminalClientConfigurationBuilder
.
-
usingSsl
ClientConfiguration.TerminalClientConfigurationBuilder usingSsl(SSLContext sslContext, HostnameVerifier hostnameVerifier) Connect via https using the givensSSLContext
and HostnameVerifierHostnameVerifier
.
NOTE You need to leave out the protocol inClientConfiguration.ClientConfigurationBuilderWithRequiredEndpoint.connectedTo(String)
.- Returns:
- the
ClientConfiguration.TerminalClientConfigurationBuilder
.
-