@sap/xssec
Version:
XS Advanced Container Security API for node.js
22 lines (17 loc) • 472 B
JavaScript
const ValidationError = require("./ValidationError");
class MissingKidError extends ValidationError {
/** @type {string} */
#kid;
constructor(kid, message = `JWKS is missing key for kid=${kid} specified in token header.`) {
super(message);
this.name = "MissingKidError";
this.#kid = kid;
}
get kid() {
return this.#kid;
}
set kid(value) {
this.#kid = value;
}
}
module.exports = MissingKidError;