org.openstreetmap.osmosis.core.database
Class AuthenticationPropertiesLoader

java.lang.Object
  extended by org.openstreetmap.osmosis.core.database.AuthenticationPropertiesLoader

public class AuthenticationPropertiesLoader
extends java.lang.Object

Loads database authentication details from a properties file.

The recognised properties are:

Author:
Brett Henderson

Constructor Summary
AuthenticationPropertiesLoader(java.io.File propertiesFile)
          Creates a new instance.
 
Method Summary
 void updateLoginCredentials(DatabaseLoginCredentials loginCredentials)
          Updates the login credentials with values from the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationPropertiesLoader

public AuthenticationPropertiesLoader(java.io.File propertiesFile)
Creates a new instance.

Parameters:
propertiesFile - The location of the properties file containing authentication information.
Method Detail

updateLoginCredentials

public void updateLoginCredentials(DatabaseLoginCredentials loginCredentials)
Updates the login credentials with values from the properties file. Only values contained in the properties file will be added.

Parameters:
loginCredentials - The login credentials to be updated.