Skip to content

Commit 8883d16

Browse files
committed
Remove deprecated TlsConfiguration#hostnameVerification methods
References #740
1 parent 7f3a095 commit 8883d16

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

src/main/java/com/rabbitmq/stream/EnvironmentBuilder.java

-25
Original file line numberDiff line numberDiff line change
@@ -436,31 +436,6 @@ EnvironmentBuilder topologyUpdateBackOffDelayPolicy(
436436
/** Helper to configure TLS. */
437437
interface TlsConfiguration {
438438

439-
/**
440-
* Enable hostname verification.
441-
*
442-
* <p>Hostname verification is enabled by default.
443-
*
444-
* @return the TLS configuration helper
445-
* @deprecated use {@link SslContextBuilder#endpointIdentificationAlgorithm(String)} with {@link
446-
* #sslContext(SslContext)}
447-
*/
448-
@Deprecated(forRemoval = true)
449-
TlsConfiguration hostnameVerification();
450-
451-
/**
452-
* Enable or disable hostname verification.
453-
*
454-
* <p>Hostname verification is enabled by default.
455-
*
456-
* @param hostnameVerification whether to enable hostname verification or not
457-
* @return the TLS configuration helper
458-
* @deprecated use {@link SslContextBuilder#endpointIdentificationAlgorithm(String)} with {@link
459-
* #sslContext(SslContext)}
460-
*/
461-
@Deprecated(forRemoval = true)
462-
TlsConfiguration hostnameVerification(boolean hostnameVerification);
463-
464439
/**
465440
* Netty {@link SslContext} for TLS connections.
466441
*

src/main/java/com/rabbitmq/stream/impl/StreamEnvironmentBuilder.java

-14
Original file line numberDiff line numberDiff line change
@@ -372,20 +372,6 @@ private DefaultTlsConfiguration(EnvironmentBuilder environmentBuilder) {
372372
this.environmentBuilder = environmentBuilder;
373373
}
374374

375-
@Override
376-
@SuppressWarnings("removal")
377-
public TlsConfiguration hostnameVerification() {
378-
this.hostnameVerification = true;
379-
return this;
380-
}
381-
382-
@Override
383-
@SuppressWarnings("removal")
384-
public TlsConfiguration hostnameVerification(boolean hostnameVerification) {
385-
this.hostnameVerification = hostnameVerification;
386-
return this;
387-
}
388-
389375
@Override
390376
public TlsConfiguration sslContext(SslContext sslContext) {
391377
this.sslContext = sslContext;

0 commit comments

Comments
 (0)