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 // API for certificate management. |
| 6 [nodoc=true, platforms=("chromeos")] |
| 7 namespace enterprise.certificates { |
| 8 enum TokenType { |
| 9 // Refers to the token of the user. |
| 10 user, |
| 11 // Refers to the token of the device, which is available in all sessions. |
| 12 device |
| 13 }; |
| 14 |
| 15 callback DoneCallback = void (); |
| 16 callback GetClientCertificatesCallback = |
| 17 void (ArrayBuffer[] certificates); |
| 18 interface Functions { |
| 19 [nocompile] static void importClientCertificate( |
| 20 [instanceOf=Key] object key, |
| 21 ArrayBuffer certificate, |
| 22 TokenType token, |
| 23 optional DoneCallback callback); |
| 24 }; |
| 25 }; |
OLD | NEW |