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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(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 /**
6 * @fileoverview Provides a Google corp implementation of IndividualAttestation.
7 */
8 'use strict';
9
10 /**
11 * Google corp implementation of IndividualAttestation that requests
12 * individual certificates for corp accounts.
13 * @constructor
14 * @implements IndividualAttestation
15 */
16 function GoogleCorpIndividualAttestation() {}
17
18 /**
19 * @param {string} appIdHash The app id hash.
20 * @return {boolean} Whether to request the individual attestation certificate
21 * for this app id.
22 */
23 GoogleCorpIndividualAttestation.prototype.requestIndividualAttestation =
24 function(appIdHash) {
25 return appIdHash == GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH;
26 };
27
28 /**
29 * App ID used by Google employee accounts.
30 * @const
31 */
32 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID =
33 'https://www.gstatic.com/securitykey/a/google.com/origins.json';
34
35 /**
36 * Hash of the app ID used by Google employee accounts.
37 * @const
38 */
39 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID_HASH =
40 B64_encode(sha256HashOfString(
41 GoogleCorpIndividualAttestation.GOOGLE_CORP_APP_ID));
OLDNEW
« 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