OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 /** @suppress {duplicate} */ |
| 6 var remoting = remoting || {}; |
| 7 |
| 8 (function() { |
| 9 |
| 10 'use strict'; |
| 11 |
| 12 /** |
| 13 * @interface |
| 14 */ |
| 15 remoting.LicenseManager = function() {}; |
| 16 |
| 17 /** |
| 18 * Called by App Streaming to obtain a fresh Subscription Token to pass to the |
| 19 * Orchestrator to authorize access to the Vendor’s application. |
| 20 * The returned Promise should emit the token serialized into a string, suitable |
| 21 * for the App Streaming client to deliver to the VM. |
| 22 * |
| 23 * @param {string} oauthToken Identity Token identifying the user for which a |
| 24 * Subscription token is being requested. |
| 25 * @return {Promise<!string>} |
| 26 */ |
| 27 remoting.LicenseManager.prototype.getSubscriptionToken = function(oauthToken){}; |
| 28 |
| 29 /** |
| 30 * Called by App Streaming to obtain a fresh Access Token to pass to the |
| 31 * application VM for use by the application to access services provided by the |
| 32 * Vendor. |
| 33 * The returned Promise should emit the token serialized into a string, suitable |
| 34 * for the App Streaming client to deliver to the VM. |
| 35 * NOTE: This interface may be revised to allow for supporting e.g. client-bound |
| 36 * Access Tokens in future. |
| 37 * |
| 38 * @param {string} oauthToken Identity Token identifying the user for which an |
| 39 * Access Token is being requested. |
| 40 * @return {Promise<!string>} |
| 41 */ |
| 42 remoting.LicenseManager.prototype.getAccessToken = function(oauthToken) {}; |
| 43 |
| 44 })(); |
| 45 |
| 46 |
| 47 |
OLD | NEW |