myIsStore = store;
}
public SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored) {
if (previousAuth == null) {
if (ISVNAuthenticationManager.SSH.equals(kind)) {
SVNSSHAuthentication sshAuth = getDefaultSSHAuthentication();
if (myUserName == null || "".equals(myUserName.trim())) {
return sshAuth;
}
if (myPrivateKey != null) {
return new SVNSSHAuthentication(myUserName, myPrivateKey, myPassphrase, sshAuth != null ? sshAuth.getPortNumber() : -1, myIsStore);
}
return new SVNSSHAuthentication(myUserName, myPassword, sshAuth != null ? sshAuth.getPortNumber() : -1, myIsStore);
} else if (ISVNAuthenticationManager.PASSWORD.equals(kind)) {
if (myUserName == null || "".equals(myUserName.trim())) {
return null;
}
return new SVNPasswordAuthentication(myUserName, myPassword, myIsStore);