Package io.deephaven.enterprise.secrets
Class SecretsService
java.lang.Object
io.deephaven.enterprise.secrets.SecretsService
The service for loading
SecretsProviders to be used with various authentication methods.-
Method Summary
Modifier and TypeMethodDescriptionstatic SecretsServiceget()Get the extended storage service.lookupSecretForTable(@NotNull String namespace, @NotNull String tableName, @NotNull String secretName, @Nullable UserContext userContext) Look up the specified secret for the table.
-
Method Details
-
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 tabletableName- the name of the tablesecretName- the name of the secret.userContext- the user requesting the secret, or null for the system itself- Returns:
- an
Optionalpossibly containing the secret, or empty otherwise.
-