OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 "namespace" : "enterprise.platformKeys", |
| 7 "description" : "Use the <code>chrome.enterprise.platformKeys</code> API to ge
nerate hardware-backed keys and to install certificates for these keys. The cert
ificates will be available to the platform and can, for example, be used for TLS
authentication and network access.", |
| 8 "platforms" : ["chromeos"], |
| 9 "types" :[ |
| 10 { |
| 11 "id" : "Token", |
| 12 "type" : "object", |
| 13 "properties" : { |
| 14 "id" : {"type" : "string"}, |
| 15 "subtleCrypto" : { |
| 16 "$ref" : "SubtleCrypto", |
| 17 "description" : "SubtleCrypto backed by platform's TPM", |
| 18 "nocompile" : true |
| 19 } |
| 20 } |
| 21 }, |
| 22 { |
| 23 "id" : "SubtleCrypto", |
| 24 "type" : "object", |
| 25 "nodoc": true, |
| 26 "additionalProperties": { "type": "any" } |
| 27 } |
| 28 ], |
| 29 "functions" :[ |
| 30 { |
| 31 "name" : "getTokens", |
| 32 "type" : "function", |
| 33 "description" : "Gets all available Tokens.", |
| 34 "nocompile" : true, |
| 35 "parameters" : [{ |
| 36 "name" : "callback", |
| 37 "type" : "function", |
| 38 "description" : "Callback to which the available Tokens are passed.", |
| 39 "parameters" : [{ |
| 40 "name" : "tokens", |
| 41 "type" : "array", |
| 42 "items" : {"$ref" : "Token"} |
| 43 }] |
| 44 }] |
| 45 }, |
| 46 { |
| 47 "name" : "getCertificates", |
| 48 "type" : "function", |
| 49 "description" : "Gets all certificates of the provided token.", |
| 50 "parameters" :[ |
| 51 {"name" : "tokenId", "type" : "string"}, |
| 52 { |
| 53 "name" : "callback", |
| 54 "type" : "function", |
| 55 "description" : "Callback to which the certificates are passed.", |
| 56 "parameters" : [{ |
| 57 "name" : "certificates", |
| 58 "type" : "array", |
| 59 "items" : |
| 60 {"type" : "binary", "isInstanceOf" : "ArrayBuffer"} |
| 61 }] |
| 62 } |
| 63 ] |
| 64 }, |
| 65 { |
| 66 "name" : "importCertificate", |
| 67 "type" : "function", |
| 68 "description" : "Import a certificate", |
| 69 "parameters" :[ |
| 70 {"name" : "tokenId", "type" : "string"}, |
| 71 { |
| 72 "name" : "certificate", |
| 73 "type" : "binary", |
| 74 "isInstanceOf" : "ArrayBuffer" |
| 75 }, |
| 76 { |
| 77 "name" : "callback", |
| 78 "type" : "function", |
| 79 "description" : "Called when the import is done.", |
| 80 "optional" : true, |
| 81 "parameters" : [] |
| 82 } |
| 83 ] |
| 84 }, |
| 85 { |
| 86 "name" : "removeCertificate", |
| 87 "type" : "function", |
| 88 "description" : "Remove a certificate", |
| 89 "parameters" :[ |
| 90 {"name" : "tokenId", "type" : "string"}, |
| 91 { |
| 92 "name" : "certificate", |
| 93 "type" : "binary", |
| 94 "isInstanceOf" : "ArrayBuffer" |
| 95 }, |
| 96 { |
| 97 "name" : "callback", |
| 98 "type" : "function", |
| 99 "description" : "Called when the removal is done.", |
| 100 "optional" : true, |
| 101 "parameters" : [] |
| 102 } |
| 103 ] |
| 104 } |
| 105 ] |
| 106 }] |
OLD | NEW |