return new SVNSSHAuthentication(userName, new Resource(path), passphrase, portNumber, authMayBeStored, url, false);
} else if (password != null) {
return new SVNSSHAuthentication(userName, password, portNumber, authMayBeStored, url, false);
}
} else if (ISVNAuthenticationManager.USERNAME.equals(kind)) {
return new SVNUserNameAuthentication(userName, authMayBeStored, url, false);
} else if (ISVNAuthenticationManager.SSL.equals(kind)) {
if (isMSCapi(sslKind)) {
String alias = SVNPropertyValue.getPropertyAsString(values.getSVNPropertyValue("alias"));
return new SVNSSLAuthentication(SVNSSLAuthentication.MSCAPI, alias, authMayBeStored, url, false);
}