Class DefaultTokenPlatformClientFactory

java.lang.Object
io.confluent.kafka.odyssey.auth.DefaultTokenPlatformClientFactory
All Implemented Interfaces:
TokenPlatformClientFactory

public class DefaultTokenPlatformClientFactory extends Object implements TokenPlatformClientFactory
Default implementation of TokenPlatformClientFactory.

This factory creates the appropriate TokenPlatformClient based on the endpoint configuration:

  • If endpoint starts with "local://", creates NoAuthTokenPlatformClient for local development
  • Otherwise, creates DefaultTokenPlatformClient with SPIRE mTLS authentication

DefaultTokenPlatformClient is loaded via reflection to avoid a compile-time dependency on io.confluent.srj:grpc, which transitively pulls in io.confluent.srj:spire. This keeps the CP build free of CC-only dependencies. The implementation class is provided at runtime via the ce-odyssey-tp-impl Bazel target.

See Also: