| // Copyright 2013 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| [ |
| { |
| "namespace": "enterprise.platformKeysPrivate", |
| "description": "none", |
| "functions": [ |
| { |
| "name": "challengeMachineKey", |
| "type": "function", |
| "description": "Challenge a machine key.", |
| "parameters": [ |
| { |
| "type": "string", |
| "name": "challenge", |
| "description": "Challenge to be signed in base64." |
| } |
| ], |
| "returns_async": { |
| "name": "callback", |
| "description": "Callback function.", |
| "parameters": [ |
| { |
| "name": "response", |
| "description": "Response in base64.", |
| "type": "string" |
| } |
| ] |
| } |
| }, |
| { |
| "name": "challengeUserKey", |
| "type": "function", |
| "description": "Challenge an user key.", |
| "parameters": [ |
| { |
| "type": "string", |
| "name": "challenge", |
| "description": "Challenge to be signed in base64." |
| }, |
| { |
| "type": "boolean", |
| "name": "registerKey", |
| "description": "If true, the key will be registered." |
| } |
| ], |
| "returns_async": { |
| "name": "callback", |
| "description": "Callback function.", |
| "parameters": [ |
| { |
| "name": "response", |
| "description": "Response in base64.", |
| "type": "string" |
| } |
| ] |
| } |
| } |
| ] |
| } |
| ] |