public void loadProperties(String encryptedPropertiesFilename,
Properties props )
throws IOException
{
EncryptedProperties loader = new DefaultEncryptedProperties();
loader.load( new FileInputStream(
new File( encryptedPropertiesFilename) ) );
System.out.println("\n\nLoaded encrypted properties file...");
try {
props.setProperty( "database.driver",
loader.getProperty( "database.driver" ) );
props.setProperty( "jdbc.url",
loader.getProperty( "jdbc.url" ) );
props.setProperty( "jdbc.username",
loader.getProperty( "jdbc.username" ) );
props.setProperty( "jdbc.password",
loader.getProperty( "jdbc.password" ) );
} catch( EncryptionException ee ) {
ee.printStackTrace();
}
}