Class HttpClientBuilders

java.lang.Object
org.eclipse.rdf4j.http.client.util.HttpClientBuilders

public class HttpClientBuilders extends Object
Convenience utility class offering helper methods to configure RDF4JHttpClientConfig instances.
Author:
Andreas Schwarte
See Also:
  • Constructor Details

    • HttpClientBuilders

      public HttpClientBuilders()
  • Method Details

    • getSslTrustAllConfig

      public static RDF4JHttpClientConfig getSslTrustAllConfig()
      Return an RDF4JHttpClientConfig configured to trust all SSL certificates and skip hostname verification.

      This installs a no-op TrustManager that accepts any certificate chain, and disables TLS endpoint identification so that hostname mismatches are also accepted. Both checks are suppressed, making this suitable for self-signed certificates in controlled/test environments.

      Warning: this configuration is inherently insecure and must never be used in production.

      Returns:
      an RDF4JHttpClientConfig for SSL trust all