Class SSLParamConfigurator


  • public final class SSLParamConfigurator
    extends Object
    A unified routines to configure SSLParameters. To be reused in connectors.
    • Method Detail

      • getSNIHostName

        public String getSNIHostName()
        Get the host name either set by the request URI or by HttpHeaders.HOST header if it differs from HTTP request host name.
        Returns:
        the hostName the SSLEngine is to use.
      • toIPRequestUri

        public URI toIPRequestUri()
        Replaces hostname within the ClientRequest uri with a resolved IP address. Should the hostname be not known, the original request URI is returned. The purpose of this method is to replace the host with the IP so that {code HttpUrlConnection} does not replace user defined SNIHostName with the host from the request uri.
        Returns:
        the request uri with ip address of the resolved host.
      • isSNIRequired

        public boolean isSNIRequired()
        Return true iff SNI is to be set, i.e. HttpHeaders.HOST header if it differs from HTTP request host name.
        Returns:
        Return true when SNIHostName is to be set.