Package com.hivemq.client.mqtt
Interface MqttClientSslConfigBuilderBase<B extends MqttClientSslConfigBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
MqttClientSslConfigBuilder,MqttClientSslConfigBuilder.Nested<P>
@DoNotImplement
public interface MqttClientSslConfigBuilderBase<B extends MqttClientSslConfigBuilderBase<B>>
Builder base for a
MqttClientSslConfig.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioncipherSuites(@Nullable Collection<@NotNull String> cipherSuites) Sets the optional user definedcipher suites.handshakeTimeout(long timeout, @NotNull TimeUnit timeUnit) Sets theSSL/TLS handshake timeout.hostnameVerifier(@Nullable HostnameVerifier hostnameVerifier) Sets the optional user definedhostname verifier.keyManagerFactory(@Nullable KeyManagerFactory keyManagerFactory) Sets the optional user definedkey manager factory.protocols(@Nullable Collection<@NotNull String> protocols) Sets the optional user definedprotocols.trustManagerFactory(@Nullable TrustManagerFactory trustManagerFactory) Sets the optional user definedtrust manager factory.
-
Method Details
-
keyManagerFactory
@CheckReturnValue @NotNull B keyManagerFactory(@Nullable @Nullable KeyManagerFactory keyManagerFactory) Sets the optional user definedkey manager factory.- Parameters:
keyManagerFactory- the key manager factory ornullto remove any previously set key manager factory.- Returns:
- the builder.
-
trustManagerFactory
@CheckReturnValue @NotNull B trustManagerFactory(@Nullable @Nullable TrustManagerFactory trustManagerFactory) Sets the optional user definedtrust manager factory.- Parameters:
trustManagerFactory- the trust manager factory ornullto remove any previously set trust manager factory- Returns:
- the builder.
-
cipherSuites
@CheckReturnValue @NotNull B cipherSuites(@Nullable @Nullable Collection<@NotNull String> cipherSuites) Sets the optional user definedcipher suites.- Parameters:
cipherSuites- the cipher suites ornullto use the default cipher suites of Netty (network communication framework).- Returns:
- the builder.
-
protocols
Sets the optional user definedprotocols.- Parameters:
protocols- the protocols ornullto use the default protocols of Netty (network communication framework).- Returns:
- the builder.
-
handshakeTimeout
Sets theSSL/TLS handshake timeout.The timeout in milliseconds must be in the range: [0,
Integer.MAX_VALUE].- Parameters:
timeout- the SSL/TLS handshake timeout or0to disable the timeout.timeUnit- the time unit of the given timeout (this timeout only supports millisecond precision).- Returns:
- the builder.
-
hostnameVerifier
@CheckReturnValue @NotNull B hostnameVerifier(@Nullable @Nullable HostnameVerifier hostnameVerifier) Sets the optional user definedhostname verifier.- Parameters:
hostnameVerifier- the hostname verifier ornullto use https hostname verification.- Returns:
- the builder.
- Since:
- 1.2
-