summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/ConfigHelper.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-02-05 20:46:33 +0100
committerParménides GV <parmegv@sdf.org>2013-02-05 20:46:33 +0100
commit1d5f1c320ee67cfadd62aeef056a043bee75096d (patch)
treed92f986b1579e6a2b365e774115f39c658d74fca /src/se/leap/leapclient/ConfigHelper.java
parent45b86cd7c8922cfd03a7f056941852273c2d122a (diff)
Simplified certificates and urls: only 1 certificate, and no :443 port
in eip. Downloads certificate and eip from web, and loads provider from assets. KeyStore not created with latest version of BouncyCastle. Looking forward to file a bug and look for a solution.
Diffstat (limited to 'src/se/leap/leapclient/ConfigHelper.java')
-rw-r--r--src/se/leap/leapclient/ConfigHelper.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/se/leap/leapclient/ConfigHelper.java b/src/se/leap/leapclient/ConfigHelper.java
index 9b857b0d..be848db0 100644
--- a/src/se/leap/leapclient/ConfigHelper.java
+++ b/src/se/leap/leapclient/ConfigHelper.java
@@ -10,20 +10,21 @@ public class ConfigHelper {
final static String downloadJsonFilesBundleExtra = "downloadJSONFiles";
final static String provider_key = "provider";
+ final static String cert_key = "cert";
final static String eip_service_key = "eip";
- static void saveSharedPref(String shared_preferences_key,
- JSONObject content) {
-
+ static void saveSharedPref(String shared_preferences_key, JSONObject content) {
+
SharedPreferences.Editor shared_preferences_editor = ProviderListActivity.shared_preferences
.edit();
shared_preferences_editor.putString(shared_preferences_key,
content.toString());
shared_preferences_editor.commit();
- System.out.println("Shared preferences updated: "
+ System.out.println("Shared preferences updated: key = "
+ + shared_preferences_key
+ + " Content = "
+ ProviderListActivity.shared_preferences.getString(
shared_preferences_key, "Default"));
-
}
static void rescueJSONException(JSONException e) {