Class EnvironmentVariablesSecretsProvider
java.lang.Object
com.evolveum.midpoint.common.secrets.SecretsProviderImpl<EnvironmentVariablesSecretsProviderType>
com.evolveum.midpoint.common.secrets.EnvironmentVariablesSecretsProvider
- All Implemented Interfaces:
SecretsProvider<EnvironmentVariablesSecretsProviderType>
public class EnvironmentVariablesSecretsProvider
extends SecretsProviderImpl<EnvironmentVariablesSecretsProviderType>
Custom implementation of
SecretsProvider
that reads secrets from environment variables.
Note: This implementation doesn't read secrets from system properties (e.g. -Dkey=value parameters).-
Field Summary
Fields inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProvider
EMPTY_DEPENDENCIES
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected <ST> ST
resolveSecret
(@NotNull String key, @NotNull Class<ST> type) Should return secret value for given key or null if the secret does not exist.Methods inherited from class com.evolveum.midpoint.common.secrets.SecretsProviderImpl
getConfiguration, getIdentifier, getSecretBinary, getSecretString, mapValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProvider
destroy, getDependencies, initialize
-
Constructor Details
-
EnvironmentVariablesSecretsProvider
-
-
Method Details
-
resolveSecret
Description copied from class:SecretsProviderImpl
Should return secret value for given key or null if the secret does not exist.- Specified by:
resolveSecret
in classSecretsProviderImpl<EnvironmentVariablesSecretsProviderType>
-