Files
shaka-player/externs/jwk_set.js
T
Joey Parrish 7e6a0f38ff fix: Correct license headers in misc. files
This corrects/normalizes license headers in misc. files, such as
config files, docs, build tools, tests, and externs.  This does not
affect the compiled output, and is only done for consistency.

Issue #2638

Change-Id: I9d8da2de55243b08d7df2b743aac73c6f15e858a
2020-06-09 16:13:56 -07:00

48 lines
771 B
JavaScript

/*! @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 = '';
}
}