Class ContainerSecretsProvider<T extends ContainerSecretsProviderType>
java.lang.Object
com.evolveum.midpoint.common.secrets.SecretsProviderImpl<T>
com.evolveum.midpoint.common.secrets.ContainerSecretsProvider<T>
- All Implemented Interfaces:
SecretsProvider<T>
- Direct Known Subclasses:
DockerSecretsProvider
,FileSecretsProvider
public abstract class ContainerSecretsProvider<T extends ContainerSecretsProviderType>
extends SecretsProviderImpl<T>
Secrets provider that reads secrets from files.
Each secret is stored as separate file where secret name is file name and secret value is file content.
Parent directory for secrets has to be defined in configuration.
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProvider
EMPTY_DEPENDENCIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NotNull File
void
Post-construction initialization.protected <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
-
Constructor Details
-
ContainerSecretsProvider
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:SecretsProvider
Post-construction initialization. Called before the provider is added to the list of usable providers. -
getParentDirectory
-
resolveSecret
protected <ST> ST resolveSecret(@NotNull @NotNull String key, @NotNull @NotNull Class<ST> type) throws EncryptionException 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<T extends ContainerSecretsProviderType>
- Throws:
EncryptionException
- if the secret cannot be resolved (e.g. due to network problems, or unforeseen error)
-