Skip navigation links
A C D E G I N P R S T V W 

A

AbstractConfigInitializer - Class in net.brabenetz.lib.securedproperties.config
Parent helper class to easier implement a custom ConfigInitializer.
AbstractConfigInitializer() - Constructor for class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
AbstractConfigInitializer(Function<ConfigKey, String>) - Constructor for class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
AbstractConfigInitializer(String, Function<ConfigKey, String>, Function<ConfigKey, String>) - Constructor for class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
Small convenience Constructor for concrete implementation which can have an optional config key-prefix.
addAllowedAlgorithm(Algorithm...) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
Algorithm - Interface in net.brabenetz.lib.securedproperties.core
The Algorithm interface for SecuredProperties.

C

Config - Interface in net.brabenetz.lib.securedproperties.config
Needed available methods to use the ConfigInitializer.
ConfigByEnvProperties - Class in net.brabenetz.lib.securedproperties.config
ConfigInitializer implementation for OS environment variables (System.getenv(String)).
ConfigByEnvProperties() - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigByEnvProperties
 
ConfigByEnvProperties(String) - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigByEnvProperties
 
ConfigByPropertyFile - Class in net.brabenetz.lib.securedproperties.config
ConfigInitializer implementation to read from Properties Files.
ConfigByPropertyFile(File) - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigByPropertyFile
 
ConfigByPropertyFile(String, File) - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigByPropertyFile
 
ConfigBySystemProperties - Class in net.brabenetz.lib.securedproperties.config
ConfigInitializer implementation to read from System Properties (System.getProperty(String)).
ConfigBySystemProperties() - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigBySystemProperties
 
ConfigBySystemProperties(String) - Constructor for class net.brabenetz.lib.securedproperties.config.ConfigBySystemProperties
 
ConfigInitializer - Interface in net.brabenetz.lib.securedproperties.config
Interface class to auto-configure a Config instance.
ConfigInitializers - Class in net.brabenetz.lib.securedproperties.config
A Collection of known ConfigInitializer factory-methods.
ConfigKey - Enum in net.brabenetz.lib.securedproperties.config
The Keys which can be external configured to set values in Config.
createKey(Algorithm) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
generate a SecretKey with the given Algorithm and wraps checked Exceptions into RuntimeExceptions.

D

decrypt(Algorithm, SecretKey, int, String) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
Decrypt the given encrypted value with the given SecretKey and the given Algorithm.
decrypt(SecuredPropertiesConfig, String) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
Encrypt the given password (will create the secret key if not already exist).
DEFAULT_PREFIX_KEBAB_CASE - Static variable in enum net.brabenetz.lib.securedproperties.config.ConfigKey
default prefix for kebab-case keys.
DEFAULT_PREFIX_UPPER_CASE - Static variable in enum net.brabenetz.lib.securedproperties.config.ConfigKey
default prefix for UPPER_CASE keys.

E

encrypt(Algorithm, SecretKey, int, String) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
Encrypt the given plain-text value with the given SecretKey and the given Algorithm.
encrypt(SecuredPropertiesConfig, String) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
Encrypt the given value (will create the secret key if not already exist).
Encryption - Class in net.brabenetz.lib.securedproperties.core
Some Utilities about encryptions.
encryptNonEncryptedValues(SecuredPropertiesConfig, File, String...) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
encryptNonEncryptedValues(SecuredPropertiesConfig, File[], String...) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
envProperties() - Static method in class net.brabenetz.lib.securedproperties.config.ConfigInitializers
 

G

getAlgorithm() - Method in class net.brabenetz.lib.securedproperties.core.SecretContainer
 
getAllowedAlgorithm() - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
getFirstSupportedAlgorithm(Algorithm...) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
 
getKebabCase() - Method in enum net.brabenetz.lib.securedproperties.config.ConfigKey
 
getKey() - Method in interface net.brabenetz.lib.securedproperties.core.Algorithm
The Algorithm key, see Cipher.getInstance(String).
getKey() - Method in enum net.brabenetz.lib.securedproperties.core.SupportedAlgorithm
 
getKeyFactory() - Method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
getSaltLength() - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
getSecretContainer(File, boolean, Algorithm...) - Static method in class net.brabenetz.lib.securedproperties.core.SecretContainerStore
Read the SecretContainer object from the given Secret File.
getSecretFile() - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
Return the SecretFile location which is needed to decrypt and encrypt your property-values.
getSecretKey() - Method in class net.brabenetz.lib.securedproperties.core.SecretContainer
 
getSecretValue(SecuredPropertiesConfig, File, String) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
getSecretValue(SecuredPropertiesConfig, File[], String) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
getSecretValues(SecuredPropertiesConfig, File, String...) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
getSecretValues(SecuredPropertiesConfig, File[], String...) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
 
getSize() - Method in interface net.brabenetz.lib.securedproperties.core.Algorithm
The Algorithm keysize of the initial secret key, see KeyGenerator.init(int).
getSize() - Method in enum net.brabenetz.lib.securedproperties.core.SupportedAlgorithm
 
getUpperCase() - Method in enum net.brabenetz.lib.securedproperties.config.ConfigKey
 
getValue(ConfigKey) - Method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
getValue(ConfigKey) - Method in class net.brabenetz.lib.securedproperties.config.ConfigByEnvProperties
 
getValue(ConfigKey) - Method in class net.brabenetz.lib.securedproperties.config.ConfigByPropertyFile
 
getValue(ConfigKey) - Method in class net.brabenetz.lib.securedproperties.config.ConfigBySystemProperties
 

I

init(Config) - Method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
init(Config) - Method in interface net.brabenetz.lib.securedproperties.config.ConfigInitializer
 
init(ConfigInitializer...) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
initAllowedAlgorithm(Config, String) - Static method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
initAutoCreateSecretKey(Config, String) - Static method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
initDefault() - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
Similar to Spring-Boot, Externalize your configuration so that you can work with the same application code in different environments.
initSaltLength(Config, String) - Static method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
initSecretFilePath(Config, String) - Static method in class net.brabenetz.lib.securedproperties.config.AbstractConfigInitializer
 
isAlgorithmSupported(Algorithm) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
Checks if the given Algorithm can be used to encrypt String-Values.
isAutoCreateSecretKey() - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
isEncryptedValue(String) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
Checks if the given String looks like an encrypted value.
isEncryptedValue(String) - Static method in class net.brabenetz.lib.securedproperties.SecuredProperties
Checks if the given String looks like an encrypted value.

N

net.brabenetz.lib.securedproperties - package net.brabenetz.lib.securedproperties
 
net.brabenetz.lib.securedproperties.config - package net.brabenetz.lib.securedproperties.config
 
net.brabenetz.lib.securedproperties.core - package net.brabenetz.lib.securedproperties.core
 
net.brabenetz.lib.securedproperties.utils - package net.brabenetz.lib.securedproperties.utils
 

P

propertyFile(File) - Static method in class net.brabenetz.lib.securedproperties.config.ConfigInitializers
 

R

readProperties(File) - Static method in class net.brabenetz.lib.securedproperties.utils.SecuredPropertiesUtils
Loads a Properties object from a given Property File and transform checked Exception into RuntimeExceptions.
readSecretKey(Algorithm, String) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
Read a SecretKey from a base64 encoded String.
replaceSecretValue(File, Pair<String, String>...) - Static method in class net.brabenetz.lib.securedproperties.utils.SecuredPropertiesUtils
Replaces the value for one key in the given Properties file and leaves all other lines unchanged.
replaceValue(String, Pair<String, String>...) - Static method in class net.brabenetz.lib.securedproperties.utils.SecuredPropertiesUtils
 

S

SecretContainer - Class in net.brabenetz.lib.securedproperties.core
A container class to store the values from the secret key file.
SecretContainer(Algorithm, SecretKey) - Constructor for class net.brabenetz.lib.securedproperties.core.SecretContainer
 
SecretContainerStore - Class in net.brabenetz.lib.securedproperties.core
Utility to read (and write if not already exists) a SecretContainer object from FileSystem.
SecuredProperties - Class in net.brabenetz.lib.securedproperties
Encrypt and decrypt secret values in properties files with a secret key.
SecuredPropertiesConfig - Class in net.brabenetz.lib.securedproperties
Configuration Object to control the behavior of SecuredProperties.
SecuredPropertiesConfig() - Constructor for class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
SecuredPropertiesUtils - Class in net.brabenetz.lib.securedproperties.utils
Some Utilities for SecuredProperties.
SupportedAlgorithm - Enum in net.brabenetz.lib.securedproperties.core
Some default implementations of Algorithm.
systemProperties() - Static method in class net.brabenetz.lib.securedproperties.config.ConfigInitializers
 

T

toBase64String(SecretKey) - Static method in class net.brabenetz.lib.securedproperties.core.Encryption
transform a SecretKey to a Base64 encoded String.

V

valueOf(String) - Static method in enum net.brabenetz.lib.securedproperties.config.ConfigKey
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.brabenetz.lib.securedproperties.core.SupportedAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.brabenetz.lib.securedproperties.config.ConfigKey
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.brabenetz.lib.securedproperties.core.SupportedAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.

W

withAllowedAlgorithm(Algorithm...) - Method in interface net.brabenetz.lib.securedproperties.config.Config
 
withAllowedAlgorithm(Algorithm...) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
withAutoCreateSecretKey(boolean) - Method in interface net.brabenetz.lib.securedproperties.config.Config
 
withAutoCreateSecretKey(boolean) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
withSaltLength(int) - Method in interface net.brabenetz.lib.securedproperties.config.Config
 
withSaltLength(int) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
 
withSecretFile(File) - Method in interface net.brabenetz.lib.securedproperties.config.Config
Overwrite the default location "%user_home%/.secret/securedProperties.key" for the secret key to encrypt and decrypt values.
withSecretFile(File) - Method in class net.brabenetz.lib.securedproperties.SecuredPropertiesConfig
Overwrite the default location "%user_home%/.secret/securedProperties.key" for the secret key to encrypt and decrypt values.
A C D E G I N P R S T V W 
Skip navigation links

Copyright © 2016–2019 Brabenetz Harald, Austria. All rights reserved.