Class SecretsProviderImpl<T extends SecretsProviderType>
java.lang.Object
com.evolveum.midpoint.common.secrets.SecretsProviderImpl<T>
- All Implemented Interfaces:
- SecretsProvider<T>
- Direct Known Subclasses:
- ContainerSecretsProvider,- EnvironmentVariablesSecretsProvider,- PropertiesSecretsProvider
public abstract class SecretsProviderImpl<T extends SecretsProviderType>
extends Object
implements SecretsProvider<T>
Base implementation of 
SecretsProvider interface.- 
Field SummaryFields inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProviderEMPTY_DEPENDENCIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns configuration of the provider.@NotNull StringReturns unique identifier of the provider.getSecretBinary(@NotNull String key) Returns secretByteBufferfor given key.getSecretString(@NotNull String key) Returns secretStringfor given key.protected <ST> STprotected abstract <ST> STresolveSecret(@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 java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProviderdestroy, getDependencies, initialize
- 
Constructor Details- 
SecretsProviderImpl
 
- 
- 
Method Details- 
getConfigurationDescription copied from interface:SecretsProviderReturns configuration of the provider.- Specified by:
- getConfigurationin interface- SecretsProvider<T extends SecretsProviderType>
 
- 
getIdentifierDescription copied from interface:SecretsProviderReturns unique identifier of the provider.- Specified by:
- getIdentifierin interface- SecretsProvider<T extends SecretsProviderType>
 
- 
getSecretStringDescription copied from interface:SecretsProviderReturns secretStringfor given key. Returns null if the secret does not exist.- Specified by:
- getSecretStringin interface- SecretsProvider<T extends SecretsProviderType>
- Throws:
- EncryptionException- if the secret cannot be resolved (e.g. due to network problems)
 
- 
getSecretBinaryDescription copied from interface:SecretsProviderReturns secretByteBufferfor given key. Returns null if the secret does not exist.- Specified by:
- getSecretBinaryin interface- SecretsProvider<T extends SecretsProviderType>
- Throws:
- EncryptionException- if the secret cannot be resolved (e.g. due to network problems)
 
- 
resolveSecretprotected abstract <ST> ST resolveSecret(@NotNull @NotNull String key, @NotNull @NotNull Class<ST> type) throws EncryptionException Should return secret value for given key or null if the secret does not exist.- Throws:
- EncryptionException- if the secret cannot be resolved (e.g. due to network problems, or unforeseen error)
 
- 
mapValue
 
-