Interface TokenResolverOutput


public interface TokenResolverOutput
Collects resolved values for tokens requested in a TokenResolverInput. An instance of this class is obtained via TokenResolverInput.getTokenResolverOutput() and is used to set the resolved token values for each required language.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setTokenValues(String language, Map<String,String> tokenValues)
    Sets the resolved token values for a single language.
  • Method Details

    • setTokenValues

      void setTokenValues(String language, Map<String,String> tokenValues)
      Sets the resolved token values for a single language. This method should be called once for each language provided in TokenResolverInput.getLanguages().

      Vault will throw an exception if this method is called for a language not requested in the input. Vault will ignore resolved values for any token names not requested in the input.

      Parameters:
      language - The language code (e.g., "en") for which the values are being provided.
      tokenValues - A Map where keys are token names (e.g., myTokenName) and values are the resolved strings for the specified language.