if (ISVNAuthenticationManager.SSH.equals(kind)) {
// use default port number from configuration file (should be in previous auth).
int portNumber = (previousAuth instanceof SVNSSHAuthentication) ? ((SVNSSHAuthentication) previousAuth).getPortNumber() : -1;
return new SVNSSHAuthentication(prompt3.getUsername(), prompt3.getPassword(), portNumber, prompt3.userAllowedSave());
}
return new SVNPasswordAuthentication(prompt3.getUsername(), prompt3.getPassword(), prompt3.userAllowedSave());
}
}else{
if(myPrompt.prompt(realm, userName)){
if (ISVNAuthenticationManager.SSH.equals(kind)) {
return new SVNSSHAuthentication(userName, myPrompt.getPassword(), -1, true);