Interface HttpClientAccess

All Known Implementing Classes:
SharedHttpClientAccess

public interface HttpClientAccess
Accessor for HttpClient used by login modules. The default implementation should return cached instance, because login modules are instantiated on each LoginContext.login(), but for test purposes we could return mocked instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    getClient(URI baseURI)
    Get an instance of JDK HTTP client to be used for OIDC operations like getting keys or OIDC metadata.
  • Method Details

    • getClient

      HttpClient getClient(URI baseURI)
      Get an instance of JDK HTTP client to be used for OIDC operations like getting keys or OIDC metadata. Could be used by KubernetesLoginModule too if needed. When baseURI is passed, we may get a cached/shared client instance configured for this specific URI.
      Parameters:
      baseURI - URI for caching purpose
      Returns:
      HttpClient