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 classThe factory for creating aSecretsProviderthat loads secrets from configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describe this provider for logging purposes.intGet the priority of thisSecretsProvider.Get the named secret.toString()
-
Constructor Details
-
PropertiesSecretsProvider
public PropertiesSecretsProvider()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:SecretsProviderGet the priority of thisSecretsProvider. TheSecretsServicewill visit providers in descending order of priority until one returns the requested secret.- Specified by:
getPriorityin interfaceSecretsProvider- Returns:
- the priority of this provider.
-
getSecret
Description copied from interface:SecretsProviderGet the named secret.- Specified by:
getSecretin interfaceSecretsProvider- Parameters:
secretName- the name of the secret- Returns:
- the value of the named secret.
-
describe
Description copied from interface:SecretsProviderDescribe this provider for logging purposes.- Specified by:
describein interfaceSecretsProvider- Returns:
- a description of this provider.
-
toString
-