Corrected method chaining in ClientTlsStrategyBuilder

This commit is contained in:
Osip Fatkullin 2024-10-13 11:26:48 +02:00 committed by Oleg Kalnichevski
parent a13ed04544
commit 001eff7064
1 changed files with 13 additions and 0 deletions

View File

@ -133,11 +133,24 @@ public class ClientTlsStrategyBuilder {
/**
* Sets {@link HostnameVerificationPolicy} value.
*
* @deprecated Use #setHostVerificationPolicy
*/
@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.
*