- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / enterprise_platform_keys_private.json
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [
6   {
7     "namespace": "enterprise.platformKeysPrivate",
8     "description": "none",
9     "platforms": ["chromeos"],
10     "functions": [
11       {
12         "name": "challengeMachineKey",
13         "type": "function",
14         "description": "Challenge a machine key.",
15         "parameters": [
16           {
17             "type": "string",
18             "name": "challenge",
19             "description": "Challenge to be signed in base64."
20           },
21           {
22             "type": "function",
23             "name": "callback",
24             "description": "Callback function.",
25             "parameters": [
26               {
27                 "name": "response",
28                 "description": "Response in base64.",
29                 "type": "string"
30               }
31             ]
32           }
33         ]
34       },
35       {
36         "name": "challengeUserKey",
37         "type": "function",
38         "description": "Challenge an user key.",
39         "parameters": [
40           {
41             "type": "string",
42             "name": "challenge",
43             "description": "Challenge to be signed in base64."
44           },
45           {
46             "type": "boolean",
47             "name": "registerKey",
48             "description": "If true, the key will be registered."
49           },
50           {
51             "type": "function",
52             "name": "callback",
53             "description": "Callback function.",
54             "parameters": [
55               {
56                 "name": "response",
57                 "description": "Response in base64.",
58                 "type": "string"
59               }
60             ]
61           }
62         ]
63       }
64     ]
65   }
66 ]