java.lang.Object
io.helidon.webclient.WebClientTls.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<WebClientTls.Builder,,WebClientTls> Supplier<WebClientTls>
- Enclosing class:
- WebClientTls
public static final class WebClientTls.Builder
extends Object
implements io.helidon.common.Builder<WebClientTls.Builder,WebClientTls>
Fluent API builder for
WebClientTls instance.-
Method Summary
Modifier and TypeMethodDescriptionallowedCipherSuite(List<String> allowedCipherSuite) Set allowed cipher suite for the client.build()certificateTrustStore(KeyConfig keyStore) Sets new certificate trust store.clientKeyStore(KeyConfig keyConfig) Sets new certificate key store.Configure a metric from configuration.disableHostnameVerification(boolean disableHostnameVerification) Sets if hostname verification should be disabled.sslContext(SSLContext sslContext) Sets newSSLContextwhich will be used as base forSslContext.trustAll(boolean trustAll) Sets if all certificates should be trusted to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
disableHostnameVerification
Sets if hostname verification should be disabled.- Parameters:
disableHostnameVerification- disabled verification- Returns:
- updated builder instance
-
trustAll
Sets if all certificates should be trusted to.- Parameters:
trustAll- trust all certificates- Returns:
- updated builder instance
-
certificateTrustStore
Sets new certificate trust store.- Parameters:
keyStore- trust store- Returns:
- updated builder instance
-
clientKeyStore
Sets new certificate key store.- Parameters:
keyConfig- key store- Returns:
- updated builder instance
-
sslContext
Sets newSSLContextwhich will be used as base forSslContext.- Parameters:
sslContext- ssl context- Returns:
- updated builder instance
-
allowedCipherSuite
Set allowed cipher suite for the client.- Parameters:
allowedCipherSuite- cipher suite- Returns:
- updated builder instance
-
config
Configure a metric from configuration. The following configuration key are used:Client Metric configuration options key default description server.disable-hostname-verification falseWhether this client should perform hostname verification server.trust-all falseWhether this client should trust all certificates server.truststore no defaultTrust store which contains trusted certificates. If set, replaces those present by default server.cipher-suite no defaultList of allowed ciphers. If set, replaces those present by default client.keystore no defaultClient key store name/location - Parameters:
config- configuration to configure this ssl- Returns:
- updated builder instance
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<WebClientTls.Builder,WebClientTls>
-