diff options
author | cyBerta <cyberta@riseup.net> | 2017-10-25 15:55:49 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2017-10-25 15:55:49 +0200 |
commit | c37149dec7dbc2ff2bccfa643792080c3c86ce18 (patch) | |
tree | f9e9c46c20448668639239e43bdbb9c88f198663 /app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java | |
parent | 0b146ea7ce6b628c7ff56a20318e7495960dfb7c (diff) |
8757 fixes session cookie handling by implementing okHttpClient and custom cookiejar, enables TLS 1.2 on old devices, restricts allowed cipher suites on new devices in order to harden tls based communication
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java b/app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java new file mode 100644 index 00000000..d4e00308 --- /dev/null +++ b/app/src/main/java/se/leap/bitmaskclient/SrpRegistrationData.java @@ -0,0 +1,42 @@ +package se.leap.bitmaskclient; + +import com.google.gson.Gson; + +/** + * Created by cyberta on 23.10.17. + */ + +public class SrpRegistrationData { + + + private User user; + + public SrpRegistrationData(String username, String passwordSalt, String passwordVerifier) { + user = new User(username, passwordSalt, passwordVerifier); + } + + + @Override + public String toString() { + return new Gson().toJson(this); + } + + + public class User { + + String login; + String password_salt; + String password_verifier; + + public User(String login, String password_salt, String password_verifier) { + this.login = login; + this.password_salt = password_salt; + this.password_verifier = password_verifier; + } + + @Override + public String toString() { + return new Gson().toJson(this); + } + } +} |