protected boolean isStorePasswords(SVNURL url) { boolean store = true; String value = getConfigFile().getPropertyValue("auth", "store-passwords"); if (value != null) { store = "yes".equalsIgnoreCase(value) || "on".equalsIgnoreCase(value) || "true".equalsIgnoreCase(value); } String host = url != null ? url.getHost() : null; Map properties = getHostProperties(host); String storePasswords = (String) properties.get("store-passwords"); if (storePasswords == null) { return store; } return "yes".equalsIgnoreCase(storePasswords) || "on".equalsIgnoreCase(storePasswords) || "true".equalsIgnoreCase(storePasswords); }
protected int getDefaultSSHPortNumber() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return -1; } String sshProgram = (String) tunnels.get("ssh"); if (sshProgram == null) { return -1; } String port = getOptionValue(sshProgram, sshProgram.toLowerCase().trim().startsWith("plink") ? "-p" : "-P"); port = port == null ? System.getProperty("svnkit.ssh2.port", System.getProperty("javasvn.ssh2.port")) : port; if (port != null) { return Integer.parseInt(port); } return -1; }
protected boolean isStorePasswords(SVNURL url) { boolean store = true; String value = getConfigFile().getPropertyValue("auth", "store-passwords"); if (value != null) { store = "yes".equalsIgnoreCase(value) || "on".equalsIgnoreCase(value) || "true".equalsIgnoreCase(value); } String host = url != null ? url.getHost() : null; Map properties = getHostProperties(host); String storePasswords = (String) properties.get("store-passwords"); if (storePasswords == null) { return store; } return "yes".equalsIgnoreCase(storePasswords) || "on".equalsIgnoreCase(storePasswords) || "true".equalsIgnoreCase(storePasswords); }
protected int getDefaultSSHPortNumber() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return -1; } String sshProgram = (String) tunnels.get("ssh"); if (sshProgram == null) { return -1; } String port = getOptionValue(sshProgram, sshProgram.toLowerCase().trim().startsWith("plink") ? "-p" : "-P"); port = port == null ? System.getProperty("svnkit.ssh2.port", System.getProperty("javasvn.ssh2.port")) : port; if (port != null) { try { return Integer.parseInt(port); } catch (NumberFormatException e) { // } } return -1; }
protected int getDefaultSSHPortNumber() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return -1; } String sshProgram = (String) tunnels.get("ssh"); if (sshProgram == null) { return -1; } String port = getOptionValue(sshProgram, sshProgram.toLowerCase().trim().startsWith("plink") ? "-p" : "-P"); port = port == null ? System.getProperty("svnkit.ssh2.port", System.getProperty("javasvn.ssh2.port")) : port; if (port != null) { try { return Integer.parseInt(port); } catch (NumberFormatException e) { // } } return -1; }
protected SVNSSHAuthentication getDefaultSSHAuthentication() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { tunnels = new SVNHashMap();
protected SVNSSHAuthentication getDefaultSSHAuthentication() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { tunnels = new HashMap();
protected SVNSSHAuthentication getDefaultSSHAuthentication() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { tunnels = new SVNHashMap();