AuthenticationData (String kind, Url url, String realm, boolean canCache) { canCache = canCache && mySaveData; Convertor<Url, AuthenticationData> convertor = myData.get(kind); AuthenticationData result = convertor == null ? null : convertor.convert(url); if (result == null) { if (SvnAuthenticationManager.PASSWORD.equals(kind)) { result = new PasswordAuthenticationData("username", "abc", canCache); } else if (SvnAuthenticationManager.SSL.equals(kind)) { result = new CertificateAuthenticationData("aaa", "abc".toCharArray(), canCache); } } return result; }