public class EncryptionFilterService extends Object implements ConfigFilter
EncryptionFilter.PRIORITY| Constructor and Description |
|---|
EncryptionFilterService() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(Config.Key key,
String stringValue)
Filters an elementary config value before it is made available to the
application via the
Config API. |
void |
init(Config config)
Initializes the filter using the
Config instance which the filter
will affect once Config.Builder.build completes. |
public String apply(Config.Key key, String stringValue)
ConfigFilterConfig API.apply in interface ConfigFilterkey - configuration key associated with the
Config nodestringValue - original value to be filtered, never nullnullpublic void init(Config config)
ConfigFilterConfig instance which the filter
will affect once Config.Builder.build completes.
The config system propagates any thrown exception to the application so its
invocation of Config.Builder#build fails.
init in interface ConfigFilterconfig - Config instance under constructionCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.