Interface TenantConfigFinder

  • public interface TenantConfigFinder
    Configuration of a tenant.
    • Field Detail


        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.
        tenantId - identified tenant, or DEFAULT_TENANT_ID if tenant was not identified, or default was chosen
        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

        void onChange​(Consumer<String> tenantIdChangeConsumer)
        Register a change listener. When configuration is updated, call the consumer to remove the cached data for this tenant.
        tenantIdChangeConsumer - consumer of tenant configuration changes