Corrected method chaining in ClientTlsStrategyBuilder
This commit is contained in:
parent
a13ed04544
commit
001eff7064
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue