public static TungstenProperties loadPasswordsFromAuthenticationInfo(AuthenticationInfo authenticationInfo) throws ServerRuntimeException {
  try {
    String passwordFileLocation=authenticationInfo.getPasswordFileLocation();
    TungstenProperties newProps=new TungstenProperties();
    newProps.load(new FileInputStream(passwordFileLocation),false);
    newProps.trim();
    logger.debug(MessageFormat.format("Passwords loaded from: {0}",passwordFileLocation));
    return newProps;
  }
 catch (  FileNotFoundException e) {
    throw new ServerRuntimeException("Unable to find properties file: " + authenticationInfo.getPasswordFileLocation(),e);
  }
catch (  IOException e) {
    throw new ServerRuntimeException("Unable to read properties file: " + authenticationInfo.getPasswordFileLocation(),e);
  }
}

public static TungstenProperties loadPasswordsFromAuthenticationInfo ( AuthenticationInfo authenticationInfo ) throws ServerRuntimeException { try { String passwordFileLocation = authenticationInfo . getPasswordFileLocation ( ) ; TungstenProperties newProps = new TungstenProperties ( ) ; newProps . load ( new FileInputStream ( passwordFileLocation ) , false ) ; newProps . trim ( ) ; logger . debug ( MessageFormat . format ( "Passwords loaded from: {0}" , passwordFileLocation ) ) ; return newProps ; } catch ( FileNotFoundException e ) { throw new ServerRuntimeException ( "Unable to find properties file: " + authenticationInfo . getPasswordFileLocation ( ) , e ) ; } catch ( IOException e ) { throw new ServerRuntimeException ( "Unable to read properties file: " + authenticationInfo . getPasswordFileLocation ( ) , e ) ; } }
loads passwords from a tungstenproperties from a . properties file
