In-memory representation of a Java properties file that can contain protected
properties with encrypted values. This class reads and writes valid Java
properties. When writing the order of the properties and the user comments
are kept. Only the changed properties are stored in the output file.
Constructs Java properties file, obtain keystore and key passwords from
the stash file and encrypt/decrypt protected properties.
Parameters:
path - path to properties files
keyStoreProp - keystore password property name
keyStoreTypeProp - keystore type property name
keyStoreAliasProp - alias property name
transformationProp - transformation property name
stashFileProp - stash file property name
Throws:
java.lang.Exception
Method Detail
store
public void store(java.lang.String path)
throws java.lang.Exception
Write the contents of this properties file to disk. The order of the
properties order and all user comments are kept. Only the modified
properties are overwritten in the file.