code: private void loadInfosFromSettings( ScmProviderRepositoryWithHost repo )
      {
          if ( username == null || password == null )
          {
              String host = repo.getHost();
  
              int port = repo.getPort();
  
              if ( port > 0 )
              {
                  host += ":" + port;
              }
  
              Server server = this.settings.getServer( host );
  
              if ( server != null )
              {
                  setPasswordIfNotEmpty( repo, decrypt( server.getPassword(), host ) );
  
                  setUserIfNotEmpty( repo, server.getUsername() );
              }
          }
      }
docs: Load username password from settings.