mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Added support for client certificates (untested)
This commit is contained in:
@@ -77,6 +77,8 @@ public class EntityIdentity {
|
||||
public String user;
|
||||
@NonNull
|
||||
public String password;
|
||||
@NonNull
|
||||
public boolean certificate;
|
||||
public String realm;
|
||||
public String fingerprint;
|
||||
@NonNull
|
||||
@@ -173,6 +175,7 @@ public class EntityIdentity {
|
||||
json.put("provider", provider);
|
||||
json.put("user", user);
|
||||
json.put("password", password);
|
||||
json.put("certificate", certificate);
|
||||
json.put("realm", realm);
|
||||
json.put("fingerprint", fingerprint);
|
||||
json.put("use_ip", use_ip);
|
||||
@@ -218,6 +221,7 @@ public class EntityIdentity {
|
||||
identity.provider = json.getString("provider");
|
||||
identity.user = json.getString("user");
|
||||
identity.password = json.getString("password");
|
||||
identity.certificate = json.optBoolean("certificate");
|
||||
if (json.has("realm") && !json.isNull("realm"))
|
||||
identity.realm = json.getString("realm");
|
||||
if (json.has("fingerprint"))
|
||||
|
||||
Reference in New Issue
Block a user