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 TypeMethodDescriptionvoidsetTokenValues(String language, Map<String, String> tokenValues) Sets the resolved token values for a single language.
-
Method Details
-
setTokenValues
Sets the resolved token values for a single language. This method should be called once for each language provided inTokenResolverInput.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- AMapwhere keys are token names (e.g.,myTokenName) and values are the resolved strings for the specified language.
-