Class SecretsService

java.lang.Object
io.deephaven.enterprise.secrets.SecretsService

public final class SecretsService extends Object
The service for loading SecretsProviders to be used with various authentication methods.
  • Method Details

    • get

      public static SecretsService get()
      Get the extended storage service.
      Returns:
      the service.
    • lookupSecretForTable

      @NotNull public @NotNull Optional<String> lookupSecretForTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @NotNull @NotNull String secretName, @Nullable @Nullable UserContext userContext)
      Look up the specified secret for the table.
      Parameters:
      namespace - the namespace of the table
      tableName - the name of the table
      secretName - the name of the secret.
      userContext - the user requesting the secret, or null for the system itself
      Returns:
      an Optional possibly containing the secret, or empty otherwise.