Searched refs:vpnProfileJson (Results 1 – 1 of 1) sorted by relevance
70 private VpnProfile genLegacyVpnProfile(JSONObject vpnProfileJson) { in genLegacyVpnProfile() argument71 VpnProfile vp = new VpnProfile(vpnProfileJson.optString("key", "")); in genLegacyVpnProfile()72 vp.name = vpnProfileJson.optString("name", ""); in genLegacyVpnProfile()73 vp.type = vpnProfileJson.optInt("type", VpnProfile.TYPE_PPTP); in genLegacyVpnProfile()74 vp.server = vpnProfileJson.optString("server", ""); in genLegacyVpnProfile()75 vp.username = vpnProfileJson.optString("username", ""); in genLegacyVpnProfile()76 vp.password = vpnProfileJson.optString("password", ""); in genLegacyVpnProfile()77 vp.dnsServers = vpnProfileJson.optString("dnsServers", ""); in genLegacyVpnProfile()78 vp.searchDomains = vpnProfileJson.optString("searchDomains", ""); in genLegacyVpnProfile()79 vp.routes = vpnProfileJson.optString("routes", ""); in genLegacyVpnProfile()[all …]