anotherim-desktop/plugins/openpgp/src/stream_flag.vala

22 lines
570 B
Vala
Raw Normal View History

2017-03-02 14:37:32 +00:00
using Gee;
2017-03-12 01:49:53 +00:00
using Xmpp;
2017-03-02 14:37:32 +00:00
using Xmpp.Core;
2017-03-12 01:49:53 +00:00
namespace Dino.Plugins.OpenPgp {
2017-03-02 14:37:32 +00:00
public class Flag : XmppStreamFlag {
public static FlagIdentity<Flag> IDENTITY = new FlagIdentity<Flag>(NS_URI, "pgp");
2017-03-02 14:37:32 +00:00
public HashMap<string, string> key_ids = new HashMap<string, string>();
public string? get_key_id(string jid) { return key_ids[get_bare_jid(jid)]; }
public void set_key_id(string jid, string key) { key_ids[get_bare_jid(jid)] = key; }
public override string get_ns() { return NS_URI; }
public override string get_id() { return IDENTITY.id; }
2017-03-02 14:37:32 +00:00
}
}