| Index: chrome/common/extensions/api/enterprise_platform_keys.json
|
| diff --git a/chrome/common/extensions/api/enterprise_platform_keys.json b/chrome/common/extensions/api/enterprise_platform_keys.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac2dcad38743735de12d041192f81ec7881a126b
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/enterprise_platform_keys.json
|
| @@ -0,0 +1,106 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +[{
|
| + "namespace" : "enterprise.platformKeys",
|
| + "description" : "Use the <code>chrome.enterprise.platformKeys</code> API to generate hardware-backed keys and to install certificates for these keys. The certificates will be available to the platform and can, for example, be used for TLS authentication and network access.",
|
| + "platforms" : ["chromeos"],
|
| + "types" :[
|
| + {
|
| + "id" : "Token",
|
| + "type" : "object",
|
| + "properties" : {
|
| + "id" : {"type" : "string"},
|
| + "subtleCrypto" : {
|
| + "$ref" : "SubtleCrypto",
|
| + "description" : "SubtleCrypto backed by platform's TPM",
|
| + "nocompile" : true
|
| + }
|
| + }
|
| + },
|
| + {
|
| + "id" : "SubtleCrypto",
|
| + "type" : "object",
|
| + "nodoc": true,
|
| + "additionalProperties": { "type": "any" }
|
| + }
|
| + ],
|
| + "functions" :[
|
| + {
|
| + "name" : "getTokens",
|
| + "type" : "function",
|
| + "description" : "Gets all available Tokens.",
|
| + "nocompile" : true,
|
| + "parameters" : [{
|
| + "name" : "callback",
|
| + "type" : "function",
|
| + "description" : "Callback to which the available Tokens are passed.",
|
| + "parameters" : [{
|
| + "name" : "tokens",
|
| + "type" : "array",
|
| + "items" : {"$ref" : "Token"}
|
| + }]
|
| + }]
|
| + },
|
| + {
|
| + "name" : "getCertificates",
|
| + "type" : "function",
|
| + "description" : "Gets all certificates of the provided token.",
|
| + "parameters" :[
|
| + {"name" : "tokenId", "type" : "string"},
|
| + {
|
| + "name" : "callback",
|
| + "type" : "function",
|
| + "description" : "Callback to which the certificates are passed.",
|
| + "parameters" : [{
|
| + "name" : "certificates",
|
| + "type" : "array",
|
| + "items" :
|
| + {"type" : "binary", "isInstanceOf" : "ArrayBuffer"}
|
| + }]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name" : "importCertificate",
|
| + "type" : "function",
|
| + "description" : "Import a certificate",
|
| + "parameters" :[
|
| + {"name" : "tokenId", "type" : "string"},
|
| + {
|
| + "name" : "certificate",
|
| + "type" : "binary",
|
| + "isInstanceOf" : "ArrayBuffer"
|
| + },
|
| + {
|
| + "name" : "callback",
|
| + "type" : "function",
|
| + "description" : "Called when the import is done.",
|
| + "optional" : true,
|
| + "parameters" : []
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name" : "removeCertificate",
|
| + "type" : "function",
|
| + "description" : "Remove a certificate",
|
| + "parameters" :[
|
| + {"name" : "tokenId", "type" : "string"},
|
| + {
|
| + "name" : "certificate",
|
| + "type" : "binary",
|
| + "isInstanceOf" : "ArrayBuffer"
|
| + },
|
| + {
|
| + "name" : "callback",
|
| + "type" : "function",
|
| + "description" : "Called when the removal is done.",
|
| + "optional" : true,
|
| + "parameters" : []
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| +}]
|
|
|