SVNErrorManager.error(error, SVNLogType.NETWORK);
}
Connection connection = new Connection(location.getHost(), port);
try {
connection.connect(null, connectTimeout, connectTimeout);
boolean authenticated = false;
if (privateKey != null) {
authenticated = connection.authenticateWithPublicKey(userName, privateKey, passphrase);
} else if (password != null) {
String[] methods = connection.getRemainingAuthMethods(userName);