Package io.helidon.config.encryption
Class EncryptionFilterService
- java.lang.Object
-
- io.helidon.config.encryption.EncryptionFilterService
-
- All Implemented Interfaces:
ConfigFilter
public class EncryptionFilterService extends Object implements ConfigFilter
A Java service forEncryptionFilter
.
-
-
Field Summary
-
Fields inherited from interface io.helidon.config.spi.ConfigFilter
PRIORITY
-
-
Constructor Summary
Constructors Constructor Description EncryptionFilterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(Config.Key key, String stringValue)
Filters an elementary config value before it is made available to the application via theConfig
API.void
init(Config config)
Initializes the filter using theConfig
instance which the filter will affect onceConfig.Builder.build
completes.
-
-
-
Method Detail
-
apply
public String apply(Config.Key key, String stringValue)
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
-
init
public void init(Config config)
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
-
-