Interface SecretsProvider

All Known Implementing Classes:
JsonFilesSecretsProvider, PropertiesSecretsProvider

public interface SecretsProvider
Implementations provide access to secrets.
  • Method Details

    • getPriority

      int getPriority()
      Get the priority of this SecretsProvider. The SecretsService will visit providers in descending order of priority until one returns the requested secret.
      Returns:
      the priority of this provider.
    • getSecret

      @Nullable @Nullable String getSecret(@NotNull @NotNull String secretName)
      Get the named secret.
      Parameters:
      secretName - the name of the secret
      Returns:
      the value of the named secret.
    • describe

      String describe()
      Describe this provider for logging purposes.
      Returns:
      a description of this provider.