Package io.deephaven.enterprise.secrets
Interface SecretsProvider
- All Known Implementing Classes:
JsonFilesSecretsProvider,PropertiesSecretsProvider
public interface SecretsProvider
Implementations provide access to secrets.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceImplementations create instances ofSecretsProviders. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describe this provider for logging purposes.intGet the priority of thisSecretsProvider.@Nullable StringGet the named secret.
-
Method Details
-
getPriority
int getPriority()Get the priority of thisSecretsProvider. TheSecretsServicewill visit providers in descending order of priority until one returns the requested secret.- Returns:
- the priority of this provider.
-
getSecret
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.
-