Skip to content

Commit 7fc0b14

Browse files
committed
Add withMinimumTlsVersion to AwsIotMqtt5ClientBuilder
1 parent d38dc94 commit 7fc0b14

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdk/src/main/java/software/amazon/awssdk/iot/AwsIotMqtt5ClientBuilder.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,17 @@ public AwsIotMqtt5ClientBuilder withTopicAliasingOptions(TopicAliasingOptions op
638638
return this;
639639
}
640640

641+
/**
642+
* Sets the minimum TLS version that is acceptable for connection establishment.
643+
*
644+
* @param minimumTlsVersion - Minimum TLS version allowed in client connections.
645+
* @return - The AwsIotMqtt5ClientBuilder
646+
*/
647+
public AwsIotMqtt5ClientBuilder withMinimumTlsVersion(TlsContextOptions.TlsVersions minimumTlsVersion) {
648+
this.configTls.minTlsVersion = minimumTlsVersion;
649+
return this;
650+
}
651+
641652
/**
642653
* Constructs an MQTT5 client object configured with the options set.
643654
* @return A MQTT5ClientOptions

0 commit comments

Comments
 (0)