Class SharedHttpClientAccess
java.lang.Object
org.apache.activemq.artemis.spi.core.security.jaas.oidc.SharedHttpClientAccess
- All Implemented Interfaces:
HttpClientAccess
Access class for
HttpClient instances which keeps already created clients in a static
cache, but creates new clients using instance options passed from just-initialized
LoginModule.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a slightly customizedHttpClientGet an instance ofJDK HTTP clientto be used for OIDC operations like getting keys or OIDC metadata.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
SharedHttpClientAccess
-
-
Method Details
-
getClient
Description copied from interface:HttpClientAccessGet 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.- Specified by:
getClientin interfaceHttpClientAccess- Parameters:
baseURI- URI for caching purpose- Returns:
HttpClient
-
createDefaultHttpClient
Create a slightly customizedHttpClient- Returns:
- newly created
HttpClient
-