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 TypeMethodDescriptionGet an instance ofJDK HTTP clientto be used for OIDC operations like getting keys or OIDC metadata.
-
Method Details
-
getClient
Get an instance ofJDK HTTP clientto be used for OIDC operations like getting keys or OIDC metadata. Could be used byKubernetesLoginModuletoo if needed. WhenbaseURIis passed, we may get a cached/shared client instance configured for this specific URI.- Parameters:
baseURI- URI for caching purpose- Returns:
HttpClient
-