Class HttpClientBuilders
java.lang.Object
org.eclipse.rdf4j.http.client.util.HttpClientBuilders
Convenience utility class offering helper methods to configure
RDF4JHttpClientConfig instances.- Author:
- Andreas Schwarte
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RDF4JHttpClientConfigReturn anRDF4JHttpClientConfigconfigured to trust all SSL certificates and skip hostname verification.
-
Constructor Details
-
HttpClientBuilders
public HttpClientBuilders()
-
-
Method Details
-
getSslTrustAllConfig
Return anRDF4JHttpClientConfigconfigured to trust all SSL certificates and skip hostname verification.This installs a no-op
TrustManagerthat 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
RDF4JHttpClientConfigfor SSL trust all
-