Class NoopApiKey

java.lang.Object
org.springframework.ai.model.NoopApiKey
All Implemented Interfaces:
ApiKey

public class NoopApiKey extends Object implements ApiKey
This implementation of ApiKey indicates that no API key should be used, e.g. no HTTP headers should be set.
Author:
Paul Bakker
  • Constructor Details

    • NoopApiKey

      public NoopApiKey()
  • Method Details

    • getValue

      public String getValue()
      Description copied from interface: ApiKey
      Returns an api key to use for a making request. Users of this method should NOT cache the returned api key, instead call this method whenever you need an api key. Implementors of this method MUST ensure that the returned key is not expired.
      Specified by:
      getValue in interface ApiKey
      Returns:
      the current value of the api key