return new SVNSSHAuthentication(userName, new File(path), passphrase, authMayBeStored);
return new SVNSSHAuthentication(userName, new File(path), passphrase, portNumber, authMayBeStored);
        public SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, String errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored) {            File dir = new File(myDirectory, kind);            if (!dir.isDirectory()) {                return null;            }            String fileName = SVNFileUtil.computeChecksum(realm);            File authFile = new File(dir, fileName);            if (authFile.exists()) {                SVNProperties props = new SVNProperties(authFile, "");                try {                    String storedRealm = props.getPropertyValue("svn:realmstring");                    if (storedRealm == null || !storedRealm.equals(realm)) {                        return null;                    }                    String userName = props.getPropertyValue("username");                    if (userName == null || "".equals(userName.trim())) {                        return null;                    }                    if ("wincrypt".equals(props.getPropertyValue("passtype"))) {                        return null;                    }                    String password = props.getPropertyValue("password");                    String path = props.getPropertyValue("key");                    String passphrase = props.getPropertyValue("passphrase");                    if (ISVNAuthenticationManager.PASSWORD.equals(kind)) {                        return new SVNPasswordAuthentication(userName, password, authMayBeStored);                    } else if (ISVNAuthenticationManager.SSH.equals(kind)) {                        if (path != null) {                            return new SVNSSHAuthentication(userName, new File(path), passphrase, authMayBeStored);                        } else if (password != null) {                            return new SVNSSHAuthentication(userName, password, authMayBeStored);                        }                                        }                } catch (SVNException e) {                    //                }            }            return null;        }