Package io.deephaven.enterprise.secrets
Class PropertiesSecretsProvider
java.lang.Object
io.deephaven.enterprise.secrets.PropertiesSecretsProvider
- All Implemented Interfaces:
SecretsProvider
A
SecretsProvider
that loads secrets from Configuration
. Note that this is not a secure way to store
secrets, and is intended for development purposes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The factory for creating aSecretsProvider
that loads secrets from configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Describe this provider for logging purposes.int
Get the priority of thisSecretsProvider
.Get the named secret.toString()
-
Constructor Details
-
PropertiesSecretsProvider
public PropertiesSecretsProvider()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:SecretsProvider
Get the priority of thisSecretsProvider
. TheSecretsService
will visit providers in descending order of priority until one returns the requested secret.- Specified by:
getPriority
in interfaceSecretsProvider
- Returns:
- the priority of this provider.
-
getSecret
Description copied from interface:SecretsProvider
Get the named secret.- Specified by:
getSecret
in interfaceSecretsProvider
- Parameters:
secretName
- the name of the secret- Returns:
- the value of the named secret.
-
describe
Description copied from interface:SecretsProvider
Describe this provider for logging purposes.- Specified by:
describe
in interfaceSecretsProvider
- Returns:
- a description of this provider.
-
toString
-