- java.lang.Object
-
- io.helidon.webclient.WebClientTls.Builder
-
- All Implemented Interfaces:
Builder<WebClientTls>
,Supplier<WebClientTls>
- Enclosing class:
- WebClientTls
public static final class WebClientTls.Builder extends Object implements Builder<WebClientTls>
Fluent API builder forWebClientTls
instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebClientTls.Builder
allowedCipherSuite(List<String> allowedCipherSuite)
Set allowed cipher suite for the client.WebClientTls
build()
Build the instance from this builder.WebClientTls.Builder
certificateTrustStore(KeyConfig keyStore)
Sets new certificate trust store.WebClientTls.Builder
clientKeyStore(KeyConfig keyConfig)
Sets new certificate key store.WebClientTls.Builder
config(Config config)
Configure a metric from configuration.WebClientTls.Builder
disableHostnameVerification(boolean disableHostnameVerification)
Sets if hostname verification should be disabled.WebClientTls.Builder
sslContext(SSLContext sslContext)
Sets newSSLContext
which will be used as base forSslContext
.WebClientTls.Builder
trustAll(boolean trustAll)
Sets if all certificates should be trusted to.
-
-
-
Method Detail
-
disableHostnameVerification
public WebClientTls.Builder disableHostnameVerification(boolean disableHostnameVerification)
Sets if hostname verification should be disabled.- Parameters:
disableHostnameVerification
- disabled verification- Returns:
- updated builder instance
-
trustAll
public WebClientTls.Builder trustAll(boolean trustAll)
Sets if all certificates should be trusted to.- Parameters:
trustAll
- trust all certificates- Returns:
- updated builder instance
-
certificateTrustStore
public WebClientTls.Builder certificateTrustStore(KeyConfig keyStore)
Sets new certificate trust store.- Parameters:
keyStore
- trust store- Returns:
- updated builder instance
-
clientKeyStore
public WebClientTls.Builder clientKeyStore(KeyConfig keyConfig)
Sets new certificate key store.- Parameters:
keyConfig
- key store- Returns:
- updated builder instance
-
sslContext
public WebClientTls.Builder sslContext(SSLContext sslContext)
Sets newSSLContext
which will be used as base forSslContext
.- Parameters:
sslContext
- ssl context- Returns:
- updated builder instance
-
allowedCipherSuite
public WebClientTls.Builder allowedCipherSuite(List<String> allowedCipherSuite)
Set allowed cipher suite for the client.- Parameters:
allowedCipherSuite
- cipher suite- Returns:
- updated builder instance
-
config
public WebClientTls.Builder config(Config config)
Configure a metric from configuration. The following configuration key are used:Client Metric configuration options key default description server.disable-hostname-verification false
Whether this client should perform hostname verification server.trust-all false
Whether this client should trust all certificates server.truststore no default
Trust store which contains trusted certificates. If set, replaces those present by default server.cipher-suite no default
List of allowed ciphers. If set, replaces those present by default client.keystore no default
Client key store name/location - Parameters:
config
- configuration to configure this ssl- Returns:
- updated builder instance
-
build
public WebClientTls build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<WebClientTls>
- Returns:
- instance of the built type
-
-