
public class ConfigByPropertyFile extends AbstractConfigInitializer
ConfigInitializer implementation to read from Properties Files.
The property-Prefix is "secured-properties".
The Keys must be kebab-case like 'secured-properties.secret-file'.
| Constructor and Description |
|---|
ConfigByPropertyFile(File propertyFile) |
ConfigByPropertyFile(String configKeyPrefix,
File propertyFile) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getValue(ConfigKey key) |
getKeyFactory, init, initAllowedAlgorithm, initAutoCreateSecretKey, initSaltLength, initSecretFilePathpublic ConfigByPropertyFile(File propertyFile)
public ConfigByPropertyFile(String configKeyPrefix, File propertyFile)
configKeyPrefix - an optional key prefix (default is 'secured-properties').propertyFile - required, but the Properties File itself is the optional.protected String getValue(ConfigKey key)
getValue in class AbstractConfigInitializerkey - The ConfigKey to search the value for.Copyright © 2016–2019 Brabenetz Harald, Austria. All rights reserved.