1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
8 interface nsIWifiEventListener
;
10 [scriptable
, uuid(2712a791
-f720
-484d
-8820-c4085629f657
)]
11 interface nsIWifiCertService
: nsISupports
13 const unsigned short WIFI_CERT_USAGE_FLAG_SERVER
= 0x01;
14 const unsigned short WIFI_CERT_USAGE_FLAG_USER
= 0x02;
16 void start
(in nsIWifiEventListener listener
);
20 * Import a certificate file.
25 * A Blob object containing raw data of certificate to be imported.
27 * Password of certificate.
29 * User assigned nickname for imported certificate.
31 void importCert
(in long id,
32 in nsIDOMBlob certBlob
,
33 in DOMString certPassword
,
34 in DOMString certNickname
);
37 * Delete an imported certificate file
42 * Certificate nickname to delete.
44 void deleteCert
(in long id,
45 in DOMString certNickname
);