Interface TenantConfigFinder
-
public interface TenantConfigFinder
Configuration of a tenant.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_TENANT_ID
Default tenant id used when requesting configuration for unknown tenant.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<TenantConfig>
config(String tenantId)
Open ID Configuration for this tenant.void
onChange(Consumer<String> tenantIdChangeConsumer)
Register a change listener.
-
-
-
Field Detail
-
DEFAULT_TENANT_ID
static final String DEFAULT_TENANT_ID
Default tenant id used when requesting configuration for unknown tenant.- See Also:
- Constant Field Values
-
-
Method Detail
-
config
Optional<TenantConfig> config(String tenantId)
Open ID Configuration for this tenant.- Parameters:
tenantId
- identified tenant, orDEFAULT_TENANT_ID
if tenant was not identified, or default was chosen- Returns:
- open ID connect configuration, or empty optional in case we are missing configuration (this will fail the request if the provider is not optional)
-
-