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 interface
Implementations create instances ofSecretsProvider
s. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Describe this provider for logging purposes.int
Get the priority of thisSecretsProvider
.@Nullable String
Get the named secret.
-
Method Details
-
getPriority
int getPriority()Get the priority of thisSecretsProvider
. TheSecretsService
will 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.
-