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 implemented_in="chrome/browser/extensions/api/enterprise_certificates/enterpris
e_certificates_internal_api.h"] |
| 8 namespace enterprise.certificatesInternal { |
| 9 callback DoneCallback = void (); |
| 10 callback GetClientCertificatesCallback = void(ArrayBuffer[] certificates); |
| 11 callback GetTokensCallback = void (DOMString[] tokenNames); |
| 12 interface Functions { |
| 13 static void importClientCertificateAndRawKey( |
| 14 ArrayBuffer key, |
| 15 ArrayBuffer certificate, |
| 16 DOMString tokenName, |
| 17 optional DoneCallback callback); |
| 18 [nocompile] static void importClientCertificateAndWebCryptoKey( |
| 19 [instanceOf=Key] object key, |
| 20 ArrayBuffer certificate, |
| 21 DOMString tokenName, |
| 22 optional DoneCallback callback); |
| 23 static void getClientCertificates(DOMString tokenName, |
| 24 GetClientCertificatesCallback callback); |
| 25 static void getTokens(GetTokensCallback callback); |
| 26 }; |
| 27 }; |
| 28 |
OLD | NEW |