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.
5 /** @suppress {duplicate} */
6 var remoting = remoting || {};
15 remoting.LicenseManager = function() {};
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.
23 * @param {string} oauthToken Identity Token identifying the user for which a
24 * Subscription token is being requested.
25 * @return {Promise<!string>}
27 remoting.LicenseManager.prototype.getSubscriptionToken = function(oauthToken){};
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
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.
38 * @param {string} oauthToken Identity Token identifying the user for which an
39 * Access Token is being requested.
40 * @return {Promise<!string>}
42 remoting.LicenseManager.prototype.getAccessToken = function(oauthToken) {};