Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: chrome/common/extensions/api/enterprise_platform_keys.json

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Splitted custom_binding, added comments... Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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" : []
+ }
+ ]
+ }
+ ]
+}]

Powered by Google App Engine
This is Rietveld 408576698