Interface TokenPlatformClientFactory

All Known Implementing Classes:
DefaultTokenPlatformClientFactory

public interface TokenPlatformClientFactory
Factory interface for creating TokenPlatformClient instances.

This factory abstracts the instantiation of Token Platform clients, allowing different implementations to be used based on configuration. The factory enables:

  • Production mode: Creates
    invalid reference
    DefaultTokenPlatformClient
    with SPIRE mTLS
  • Local dev mode: Creates NoAuthTokenPlatformClient when endpoint starts with "local://"
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Sentinel prefix for local development mode endpoints.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String endpoint, String spireAgentUrl)
    Creates a TokenPlatformClient based on the provided configuration.
    Returns the default factory implementation.
  • Field Details

    • LOCAL_DEV_SENTINEL

      static final String LOCAL_DEV_SENTINEL
      Sentinel prefix for local development mode endpoints. When the endpoint starts with this prefix, a no-auth client is created.
      See Also:
  • Method Details