@ConditionalOnMissingBean(name = "hostnameVerifier")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public HostnameVerifier hostnameVerifier(final CasConfigurationProperties casProperties) {
            if ("none".equalsIgnoreCase(casProperties.getHttpClient().getHostNameVerifier())) {
                return NoopHostnameVerifier.INSTANCE;
            }
            return new DefaultHostnameVerifier();
        }
This is {@link CasCoreHttpConfiguration}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreHttpConfiguration.java