public final class EncryptionFilter extends Object implements ConfigFilter
Password in properties must be stored as follows:
google_client_secret=${AES=mYRkg+4Q4hua1kvpCCI2hg==}
service_password=${RSA=mYRkg+4Q4hua1kvpCCI2hg==}
another_password=${ALIAS=service_password}
cleartext_password=${CLEAR=known_password}
| Modifier and Type | Class and Description |
|---|---|
static class |
EncryptionFilter.Builder
Builder to programmatically setup
EncryptionFilter. |
PRIORITY| 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. |
static EncryptionFilter.Builder |
builder()
Builder to programmatically configure filter.
|
static Function<Config,ConfigFilter> |
fromConfig()
Create a filter based on configuration (it takes its configuration from the configuration object it filters).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static Function<Config,ConfigFilter> fromConfig()
public static EncryptionFilter.Builder builder()
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 nullnullCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.