Module io.helidon.config.encryption
Package io.helidon.config.encryption
Class EncryptionFilterService
java.lang.Object
io.helidon.config.encryption.EncryptionFilterService
- All Implemented Interfaces:
ConfigFilter
A Java service for
EncryptionFilter
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Config.Key key, ConfigItem itemPolicy) Filters an elementary config value before it is made available to the application via theConfig
API.apply
(Config.Key key, String stringValue) Filters an elementary config value before it is made available to the application via theConfig
API.void
Initializes the filter using theConfig
instance which the filter will affect onceConfig.Builder.build
completes.
-
Constructor Details
-
EncryptionFilterService
public EncryptionFilterService()
-
-
Method Details
-
apply
Description copied from interface:ConfigFilter
Filters an elementary config value before it is made available to the application via theConfig
API.- Specified by:
apply
in interfaceConfigFilter
- Parameters:
key
- configurationkey
associated with theConfig
nodestringValue
- original value to be filtered, nevernull
- Returns:
- original value or filtered (changed) value, never
null
-
apply
Description copied from interface:ConfigFilter
Filters an elementary config value before it is made available to the application via theConfig
API. ReturnsConfigItem
object which contains filtered config value and specific value settings.- Specified by:
apply
in interfaceConfigFilter
- Parameters:
key
- configurationkey
associated with theConfig
nodeitemPolicy
- original item policy- Returns:
- new item policy object with the filtered config value
-
init
Description copied from interface:ConfigFilter
Initializes the filter using theConfig
instance which the filter will affect onceConfig.Builder.build
completes.The config system propagates any thrown exception to the application so its invocation of
Config.Builder#build
fails.- Specified by:
init
in interfaceConfigFilter
- Parameters:
config
-Config
instance under construction
-