summaryrefslogtreecommitdiff
path: root/swig/KeyRing.i
blob: b57eb4e7864634cdafbb509bcf02f9f413652934 (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

typedef intrusive_ptr<KeyRing> KeyRing_Ptr;

class KeyRing
{

public:

    KeyRing(const zypp::Pathname& baseTmpDir);
    ~KeyRing();

    void importKey(const PublicKey& key, bool trusted = false);

    bool isKeyTrusted(const std::string& id);
    bool isKeyKnown(const std::string& id);

    void deleteKey(const std::string& id, bool trusted = false);

    std::list<PublicKey> publicKeys();
    std::list<PublicKey> trustedPublicKeys();

};

%template(KeyRing_Ptr) intrusive_ptr<KeyRing>;

%template(List_PublicKey) std::list<PublicKey>;