String[] userInfoParts = uri.getUserInfo().split(":"); String usernameEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[0]); String passwordEnc = ""; String authType = ""; if (userInfoParts.length > 1) { passwordEnc = ":" + UrlEncodingHelper.encodeUtf8(userInfoParts[1]); String[] userInfoParts = uri.getUserInfo().split(":"); if (userInfoParts.length == 2) { String usernameEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[0]); String passwordEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[1]); String usernameEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[1]); String passwordEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[2]); String usernameEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[0]); passwordEnc = ":" + UrlEncodingHelper.encodeUtf8(userInfoParts[1]); } else if (storeUriStr.startsWith("webdav")) { String[] userInfoParts = uri.getUserInfo().split(":", 2); String usernameEnc = UrlEncodingHelper.encodeUtf8(userInfoParts[0]); passwordEnc = ":" + UrlEncodingHelper.encodeUtf8(userInfoParts[1]);
String domain = emailParts[1]; try { String userEnc = UrlEncodingHelper.encodeUtf8(user); String passwordEnc = UrlEncodingHelper.encodeUtf8(password);