Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2873)

Unified Diff: chrome/browser/resources/cryptotoken/googlecorpindividualattest.js

Issue 596083002: Update cryptotoken to 0.8.63 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove a deprecated line Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/cryptotoken/googlecorpindividualattest.js
diff --git a/chrome/browser/resources/cryptotoken/googlecorpindividualattest.js b/chrome/browser/resources/cryptotoken/googlecorpindividualattest.js
new file mode 100644
index 0000000000000000000000000000000000000000..57732fc04fe7e395441b2c70ddb3f79feb2aec38
--- /dev/null
+++ b/chrome/browser/resources/cryptotoken/googlecorpindividualattest.js
@@ -0,0 +1,41 @@
+// 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.
+
+/**
+ * @fileoverview Provides a Google corp implementation of IndividualAttestation.
+ */
+'use strict';
+
+/**
+ * Google corp implementation of IndividualAttestation that requests
+ * individual certificates for corp accounts.
+ * @constructor
+ * @implements IndividualAttestation
+ */
+function GoogleCorpIndividualAttestation() {}
+
+/**
+ * @param {string} appIdHash The app id hash.
+ * @return {boolean} Whether to request the individual attestation certificate
+ * for this app id.
+ */
+GoogleCorpIndividualAttestation.prototype.requestIndividualAttestation =
+ function(appIdHash) {
+ return appIdHash == GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH;
+};
+
+/**
+ * App ID used by Google employee accounts.
+ * @const
+ */
+GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID =
+ 'https://www.gstatic.com/securitykey/a/google.com/origins.json';
+
+/**
+ * Hash of the app ID used by Google employee accounts.
+ * @const
+ */
+GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH =
+ B64_encode(sha256HashOfString(
+ GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID));
« no previous file with comments | « chrome/browser/resources/cryptotoken/gnubby-u2f.js ('k') | chrome/browser/resources/cryptotoken/hidgnubbydevice.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698