Class AlternateScopeResolverHolder

java.lang.Object
io.confluent.security.authorizer.AlternateScopeResolverHolder
All Implemented Interfaces:
AlternateScopeResolver

public class AlternateScopeResolverHolder extends Object implements AlternateScopeResolver
Mutable, thread-safe AlternateScopeResolver container that is a no-op until reconfigured (Null Object pattern). Created and bound by the authorizer-owning layer (ConfluentProvider) into the metadata-server DI binder, so the downstream metadata service can @Inject this single stable reference and install its policy (e.g. lkc -> pkc) later, once it knows it is running in multi-tenant mode -- the policy is not available when the binder is populated at startup, and DI bindings cannot be rebound. Until a delegate is installed, resolve(RequestContext, Action) returns Optional.empty(), which the authorizer treats as "no fallback".
  • Constructor Details

    • AlternateScopeResolverHolder

      public AlternateScopeResolverHolder()
  • Method Details