Class CacheableSecretsProviderDelegate<C>
java.lang.Object
com.evolveum.midpoint.common.secrets.CacheableSecretsProviderDelegate<C>
- Type Parameters:
- C-
- All Implemented Interfaces:
- SecretsProvider<C>
Delegate implementation for secret providers that is able to cache the resolved secrets and check keys for allowed prefixes.
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.prism.crypto.SecretsProviderEMPTY_DEPENDENCIES
- 
Constructor SummaryConstructorsConstructorDescriptionCacheableSecretsProviderDelegate(@NotNull SecretsProvider<C> delegate, Duration duration) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()This method can be used to clean-up resources of secret provider.Returns configuration of the provider.@NotNull String[]Returns list of providers that this provider depends on.@NotNull StringReturns unique identifier of the provider.getSecretBinary(@NotNull String key) Returns secretByteBufferfor given key.getSecretString(@NotNull String key) Returns secretStringfor given key.voidPost-construction initialization.protected <ST> STresolveSecret(@NotNull String key, @NotNull Class<ST> type) 
- 
Constructor Details- 
CacheableSecretsProviderDelegatepublic CacheableSecretsProviderDelegate(@NotNull @NotNull SecretsProvider<C> delegate, Duration duration) 
 
- 
- 
Method Details- 
initializepublic void initialize()Description copied from interface:SecretsProviderPost-construction initialization. Called before the provider is added to the list of usable providers.- Specified by:
- initializein interface- SecretsProvider<C>
 
- 
destroypublic void destroy()Description copied from interface:SecretsProviderThis method can be used to clean-up resources of secret provider. Called after provider was removed from the list of usable providers.- Specified by:
- destroyin interface- SecretsProvider<C>
 
- 
getIdentifierDescription copied from interface:SecretsProviderReturns unique identifier of the provider.- Specified by:
- getIdentifierin interface- SecretsProvider<C>
 
- 
getDependenciesDescription copied from interface:SecretsProviderReturns list of providers that this provider depends on. The provider will be initialized after all dependencies are available and initialized. Default implementation returns an empty array.- Specified by:
- getDependenciesin interface- SecretsProvider<C>
 
- 
getConfigurationDescription copied from interface:SecretsProviderReturns configuration of the provider.- Specified by:
- getConfigurationin interface- SecretsProvider<C>
 
- 
getSecretBinaryDescription copied from interface:SecretsProviderReturns secretByteBufferfor given key. Returns null if the secret does not exist.- Specified by:
- getSecretBinaryin interface- SecretsProvider<C>
- Throws:
- EncryptionException- if the secret cannot be resolved (e.g. due to network problems)
 
- 
getSecretStringDescription copied from interface:SecretsProviderReturns secretStringfor given key. Returns null if the secret does not exist.- Specified by:
- getSecretStringin interface- SecretsProvider<C>
- Throws:
- EncryptionException- if the secret cannot be resolved (e.g. due to network problems)
 
- 
resolveSecretprotected <ST> ST resolveSecret(@NotNull @NotNull String key, @NotNull @NotNull Class<ST> type) throws EncryptionException - Throws:
- EncryptionException
 
 
-