1 public class TrustAnchor : Object
3 public string ca_cert {get; set; default = "";}
4 public string subject {get; set; default = "";}
5 public string subject_alt {get; set; default = "";}
6 public string server_cert {get; set; default = "";}
11 public string pattern;
12 public string always_confirm;
15 public class IdCard : Object
17 public const string NO_IDENTITY = "No Identity";
21 public string display_name { get; set; default = ""; }
23 public string username { get; set; default = ""; }
25 private unowned string _password;
26 public string password {
28 return (_password!=null) ? _password : "";
31 if (_password != null) {
32 GnomeKeyring.memory_free((void *)_password);
36 _password = GnomeKeyring.memory_strdup(value);
40 public string password { get; set; default = null; }
43 public string issuer { get; set; default = ""; }
45 public Rule[] rules {get; set; default = {};}
46 public string[] services { get; set; default = {}; }
48 public TrustAnchor trust_anchor { get; set; default = new TrustAnchor (); }
50 public Gdk.Pixbuf pixbuf { get; set; default = null; }
52 public unowned string nai { get { _nai = username + "@" + issuer; return _nai;}}
54 public bool store_password { get; set; default = false; }
56 public bool IsNoIdentity()
58 return (display_name == NO_IDENTITY);
61 public static IdCard NewNoIdentity()
63 IdCard card = new IdCard();
64 card.display_name = NO_IDENTITY;