-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathjwk_set.js
More file actions
47 lines (40 loc) · 771 Bytes
/
jwk_set.js
File metadata and controls
47 lines (40 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Externs for JWK set.
* @externs
*/
/** A JSON Web Key set. */
class JWKSet {
constructor() {
/** @type {Array.<JWK>} */
this.keys = [];
}
}
/** A JSON Web Key. */
class JWK {
constructor() {
/**
* A key ID. Any ASCII string.
* @type {string}
*/
this.kid = '';
/**
* A key type. One of:
* 1. "oct" (symmetric key octect sequence)
* 2. "RSA" (RSA key)
* 3. "EC" (elliptical curve key)
* Use "oct" for clearkey.
* @type {string}
*/
this.kty = '';
/**
* A key in base 64. Used with kty="oct".
* @type {string}
*/
this.k = '';
}
}