security/manager/ssl/public/nsICMSSecureMessage.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:cbb049be42d6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #include "nsISupports.idl"
7
8 interface nsIX509Cert;
9
10 /**
11 * nsICMSManager (service)
12 * Interface to access users certificate store
13 */
14 [scriptable, uuid(14b4394a-1dd2-11b2-b4fd-ba4a194fe97e)]
15 interface nsICMSSecureMessage : nsISupports
16 {
17 /**
18 * getCertByPrefID - a BASE64 string representing a user's
19 * certificate (or NULL if there isn't one)
20 */
21 string getCertByPrefID(in string certID);
22
23 /**
24 * decodeCert - decode a BASE64 string into an X509Certificate object
25 */
26 nsIX509Cert decodeCert(in string value);
27
28 /**
29 * sendMessage - send a text message to the recipient indicated
30 * by the base64-encoded cert.
31 */
32 string sendMessage(in string msg, in string cert);
33
34 /**
35 * receiveMessage - receive an encrypted (enveloped) message
36 */
37 string receiveMessage(in string msg);
38 };
39
40 %{C++
41 #define NS_CMSSECUREMESSAGE_CONTRACTID "@mozilla.org/nsCMSSecureMessage;1"
42 %}

mercurial