public class SecureConfigurationPropertiesProvider
extends org.mule.runtime.config.api.dsl.model.properties.DefaultConfigurationPropertiesProvider
This provider resolves properties that start with the prefix secure::, returning the value of the expression to the one corresponding to the configuration file. In case the value is surrounded by the characters ![value], it will return the decrypted value using the algorithm, mode and key provided.
configurationAttributes, encoding, fileLocation, PROPERTIES_EXTENSION, resourceProvider, UNKNOWN, YAML_EXTENSION| Constructor and Description |
|---|
SecureConfigurationPropertiesProvider(org.mule.runtime.config.api.dsl.model.ResourceProvider resourceProvider,
String file,
EncryptionAlgorithm algorithm,
String key,
EncryptionMode mode,
String encoding,
boolean fileLevelEncryption,
boolean useRandomIVs) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createValue(String key,
String value) |
Optional<org.mule.runtime.config.api.dsl.model.properties.ConfigurationProperty> |
getConfigurationProperty(String configurationAttributeKey) |
String |
getDescription() |
protected InputStream |
getResourceInputStream(String file) |
createAttributesFromYamlObject, createKey, getResourceInputStreamReader, initialise, readAttributesFromFilepublic SecureConfigurationPropertiesProvider(org.mule.runtime.config.api.dsl.model.ResourceProvider resourceProvider,
String file,
EncryptionAlgorithm algorithm,
String key,
EncryptionMode mode,
String encoding,
boolean fileLevelEncryption,
boolean useRandomIVs)
public Optional<org.mule.runtime.config.api.dsl.model.properties.ConfigurationProperty> getConfigurationProperty(String configurationAttributeKey)
getConfigurationProperty in interface org.mule.runtime.config.api.dsl.model.properties.ConfigurationPropertiesProvidergetConfigurationProperty in class org.mule.runtime.config.api.dsl.model.properties.DefaultConfigurationPropertiesProviderpublic String getDescription()
getDescription in interface org.mule.runtime.config.api.dsl.model.properties.ConfigurationPropertiesProvidergetDescription in class org.mule.runtime.config.api.dsl.model.properties.DefaultConfigurationPropertiesProviderprotected String createValue(String key, String value)
createValue in class org.mule.runtime.config.api.dsl.model.properties.DefaultConfigurationPropertiesProviderprotected InputStream getResourceInputStream(String file) throws IOException
getResourceInputStream in class org.mule.runtime.config.api.dsl.model.properties.DefaultConfigurationPropertiesProviderIOExceptionCopyright © 2023 MuleSoft, Inc.. All rights reserved.