Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / wifi / nsIWifiCertService.idl
blob93fe7299017a040c171cffe6d45f3e74363f72ab
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"
7 interface nsIDOMBlob;
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);
17 void shutdown();
19 /**
20 * Import a certificate file.
22 * @param id
23 * Request ID.
24 * @param certBlob
25 * A Blob object containing raw data of certificate to be imported.
26 * @param certPassword
27 * Password of certificate.
28 * @param certNickname
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);
36 /**
37 * Delete an imported certificate file
39 * @param id
40 * Request ID.
41 * @param certNickname
42 * Certificate nickname to delete.
44 void deleteCert(in long id,
45 in DOMString certNickname);