Interface EnvironmentBuilder.TlsConfiguration

  • Enclosing interface:
    EnvironmentBuilder

    public static interface EnvironmentBuilder.TlsConfiguration
    Helper to configure TLS.
    • Method Detail

      • hostnameVerification

        EnvironmentBuilder.TlsConfiguration hostnameVerification()
        Enable hostname verification.

        Hostname verification is enabled by default.

        Returns:
        the TLS configuration helper
      • hostnameVerification

        EnvironmentBuilder.TlsConfiguration hostnameVerification​(boolean hostnameVerification)
        Enable or disable hostname verification.

        Hostname verification is enabled by default.

        Parameters:
        hostnameVerification -
        Returns:
        the TLS configuration helper
      • trustEverything

        EnvironmentBuilder.TlsConfiguration trustEverything()
        Convenience method to set a SslContext that trusts all servers.

        When this feature is enabled, no peer verification is performed, which provides no protection against Man-in-the-Middle (MITM) attacks.

        Use this only in development and QA environments.

      • environmentBuilder

        EnvironmentBuilder environmentBuilder()
        Go back to the environment builder
        Returns:
        the environment builder