Interface TenantConfigFinder
public interface TenantConfigFinder
Configuration of a tenant.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default tenant id used when requesting configuration for unknown tenant. -
Method Summary
-
Field Details
-
DEFAULT_TENANT_ID
Default tenant id used when requesting configuration for unknown tenant.- See Also:
-
-
Method Details
-
config
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)
-
onChange
Register a change listener. When configuration is updated, call the consumer to remove the cached data for this tenant.- Parameters:
tenantIdChangeConsumer
- consumer of tenant configuration changes
-