Package | Description |
---|---|
net.brabenetz.lib.securedproperties |
Modifier and Type | Method and Description |
---|---|
SecuredPropertiesConfig |
SecuredPropertiesConfig.addAllowedAlgorithm(Algorithm... addedAllowedAlgorithm) |
SecuredPropertiesConfig |
SecuredPropertiesConfig.init(ConfigInitializer... configInitializers)
The generic variant of
initDefault() . |
SecuredPropertiesConfig |
SecuredPropertiesConfig.initDefault()
Similar to Spring-Boot, Externalize your configuration so that you can work with the same application code in different environments.
|
SecuredPropertiesConfig |
SecuredPropertiesConfig.withAllowedAlgorithm(Algorithm... newAllowedAlgorithm) |
SecuredPropertiesConfig |
SecuredPropertiesConfig.withAutoCreateSecretKey(boolean autoCreate) |
SecuredPropertiesConfig |
SecuredPropertiesConfig.withSaltLength(int newSaltLength) |
SecuredPropertiesConfig |
SecuredPropertiesConfig.withSecretFile(File newSecretFile)
Overwrite the default location "%user_home%/.secret/securedProperties.key" for the secret key to encrypt and decrypt values.
|
Modifier and Type | Method and Description |
---|---|
static String |
SecuredProperties.decrypt(SecuredPropertiesConfig config,
String encryptedPassword)
Encrypt the given password (will create the secret key if not already exist).
|
static String |
SecuredProperties.encrypt(SecuredPropertiesConfig config,
String plainTextValue)
Encrypt the given value (will create the secret key if not already exist).
|
static void |
SecuredProperties.encryptNonEncryptedValues(SecuredPropertiesConfig config,
File[] propertyFiles,
String... keys) |
static void |
SecuredProperties.encryptNonEncryptedValues(SecuredPropertiesConfig config,
File propertyFile,
String... keys) |
static String |
SecuredProperties.getSecretValue(SecuredPropertiesConfig config,
File[] propertyFiles,
String key) |
static String |
SecuredProperties.getSecretValue(SecuredPropertiesConfig config,
File propertyFile,
String key) |
static Map<String,String> |
SecuredProperties.getSecretValues(SecuredPropertiesConfig config,
File[] propertyFiles,
String... keys) |
static Map<String,String> |
SecuredProperties.getSecretValues(SecuredPropertiesConfig config,
File propertyFile,
String... keys) |
Copyright © 2016–2019 Brabenetz Harald, Austria. All rights reserved.