- Timestamp:
- 2008-02-12T16:13:13+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java
r14601 r14974 37 37 import org.greenstone.gatherer.DebugStream; 38 38 import org.greenstone.gatherer.Dictionary; 39 import org.greenstone.gatherer.FedoraInfo; 39 40 import org.greenstone.gatherer.GAuthenticator; 40 41 import org.greenstone.gatherer.Gatherer; … … 854 855 public void run() 855 856 { 856 remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication(); 857 858 if (Configuration.fedora_info.isActive()) { 859 860 FedoraInfo fedora_info = Configuration.fedora_info; 861 862 String username = fedora_info.getUsername(); 863 String password = fedora_info.getPassword(); 864 865 //remote_greenstone_server_authentication.setUsername(fedora_info.getUsername()); 866 //remote_greenstone_server_authentication.setPassword(fedora_info.getPassword()); 867 868 remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication(username,password); 869 870 871 } 872 else { 873 remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication(); 874 875 } 857 876 } 858 877 … … 861 880 extends GAuthenticator 862 881 { 882 public PasswordAuthentication getAuthentication(String username, String password) 883 { 884 return getPasswordAuthentication(username,password); 885 } 886 863 887 public PasswordAuthentication getAuthentication() 864 888 {
Note:
See TracChangeset
for help on using the changeset viewer.