Skip to content

Commit

Permalink
Corrected method chaining in ClientTlsStrategyBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd authored and ok2c committed Oct 13, 2024
1 parent a13ed04 commit 891ccc6
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,24 @@ public ClientTlsStrategyBuilder setSslBufferMode(final SSLBufferMode sslBufferMo

/**
* Sets {@link HostnameVerificationPolicy} value.
*
* @deprecated Use setHostnameVerification
*/
@Deprecated
public void setHostnameVerificationPolicy(final HostnameVerificationPolicy hostnameVerificationPolicy) {
this.hostnameVerificationPolicy = hostnameVerificationPolicy;
}

/**
* Sets {@link HostnameVerificationPolicy} value.
*
* @since 5.5
*/
public ClientTlsStrategyBuilder setHostVerificationPolicy(final HostnameVerificationPolicy hostnameVerificationPolicy) {
this.hostnameVerificationPolicy = hostnameVerificationPolicy;
return this;
}

/**
* Sets {@link HostnameVerifier} instance.
*
Expand Down

0 comments on commit 891ccc6

Please sign in to comment.