| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Internal API for platform keys and certificate management. | 5 // Internal API for platform keys and certificate management. |
| 6 [ platforms = ("chromeos"), | 6 [ platforms = ("chromeos"), |
| 7 implemented_in = "chrome/browser/extensions/api/enterprise_platform_keys/enter
prise_platform_keys_api.h", | 7 implemented_in = "chrome/browser/extensions/api/enterprise_platform_keys/enter
prise_platform_keys_api.h" ] |
| 8 use_movable_types=true ] | |
| 9 namespace enterprise.platformKeysInternal { | 8 namespace enterprise.platformKeysInternal { |
| 10 // Invoked by <code>getTokens</code>. | 9 // Invoked by <code>getTokens</code>. |
| 11 // |tokenIds| The list of IDs of the avialable Tokens. | 10 // |tokenIds| The list of IDs of the avialable Tokens. |
| 12 callback GetTokensCallback = void(DOMString[] tokenIds); | 11 callback GetTokensCallback = void(DOMString[] tokenIds); |
| 13 | 12 |
| 14 // Invoked by <code>generateKey</code>. | 13 // Invoked by <code>generateKey</code>. |
| 15 // |publicKey| The Subject Public Key Info (see X.509) of the generated key | 14 // |publicKey| The Subject Public Key Info (see X.509) of the generated key |
| 16 // in DER encoding. | 15 // in DER encoding. |
| 17 callback GenerateKeyCallback = void(ArrayBuffer publicKey); | 16 callback GenerateKeyCallback = void(ArrayBuffer publicKey); |
| 18 | 17 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 29 // RSASSA-PKCS1-v1_5. | 28 // RSASSA-PKCS1-v1_5. |
| 30 // |tokenId| The id of a Token returned by |getTokens|. | 29 // |tokenId| The id of a Token returned by |getTokens|. |
| 31 // |modulusLength| The length, in bits, of the RSA modulus. | 30 // |modulusLength| The length, in bits, of the RSA modulus. |
| 32 // |callback| Called back with the Subject Public Key Info of the generated | 31 // |callback| Called back with the Subject Public Key Info of the generated |
| 33 // key. | 32 // key. |
| 34 static void generateKey(DOMString tokenId, | 33 static void generateKey(DOMString tokenId, |
| 35 long modulusLength, | 34 long modulusLength, |
| 36 GenerateKeyCallback callback); | 35 GenerateKeyCallback callback); |
| 37 }; | 36 }; |
| 38 }; | 37 }; |
| OLD | NEW |