Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/main/java/com/rabbitmq/stream/EnvironmentBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,31 +436,6 @@ EnvironmentBuilder topologyUpdateBackOffDelayPolicy(
/** Helper to configure TLS. */
interface TlsConfiguration {

/**
* Enable hostname verification.
*
* <p>Hostname verification is enabled by default.
*
* @return the TLS configuration helper
* @deprecated use {@link SslContextBuilder#endpointIdentificationAlgorithm(String)} with {@link
* #sslContext(SslContext)}
*/
@Deprecated(forRemoval = true)
TlsConfiguration hostnameVerification();

/**
* Enable or disable hostname verification.
*
* <p>Hostname verification is enabled by default.
*
* @param hostnameVerification whether to enable hostname verification or not
* @return the TLS configuration helper
* @deprecated use {@link SslContextBuilder#endpointIdentificationAlgorithm(String)} with {@link
* #sslContext(SslContext)}
*/
@Deprecated(forRemoval = true)
TlsConfiguration hostnameVerification(boolean hostnameVerification);

/**
* Netty {@link SslContext} for TLS connections.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,20 +372,6 @@ private DefaultTlsConfiguration(EnvironmentBuilder environmentBuilder) {
this.environmentBuilder = environmentBuilder;
}

@Override
@SuppressWarnings("removal")
public TlsConfiguration hostnameVerification() {
this.hostnameVerification = true;
return this;
}

@Override
@SuppressWarnings("removal")
public TlsConfiguration hostnameVerification(boolean hostnameVerification) {
this.hostnameVerification = hostnameVerification;
return this;
}

@Override
public TlsConfiguration sslContext(SslContext sslContext) {
this.sslContext = sslContext;
Expand Down