Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
6 #include "nsISupports.idl"
8 interface nsIX509Cert;
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);
23 /**
24 * decodeCert - decode a BASE64 string into an X509Certificate object
25 */
26 nsIX509Cert decodeCert(in string value);
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);
34 /**
35 * receiveMessage - receive an encrypted (enveloped) message
36 */
37 string receiveMessage(in string msg);
38 };
40 %{C++
41 #define NS_CMSSECUREMESSAGE_CONTRACTID "@mozilla.org/nsCMSSecureMessage;1"
42 %}