blob: d4e0030827507aa0b84a9e9212c0deaf551355e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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);
}
}
}
|