Index: chrome/renderer/resources/extensions/enterprise_platform_keys/token.js |
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dee795211e62ac56c7d9dbfc28cad41842ca1344 |
--- /dev/null |
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/token.js |
@@ -0,0 +1,19 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+var utils = require('utils'); |
+var SubtleCrypto = require('enterprise.platformKeys.SubtleCrypto').SubtleCrypto; |
+ |
+/** |
+ * Implementation of enterprise.platformKeys.Token. |
+ * @param {string} id The id of the new Token. |
+ * @constructor |
+ */ |
+var TokenImpl = function(id) { |
+ this.id = id; |
+ this.subtleCrypto = new SubtleCrypto(id); |
+}; |
+ |
+exports.Token = |
+ utils.expose('Token', TokenImpl, {readonly:['id', 'subtleCrypto']}); |