@sap/xssec
Version:
XS Advanced Container Security API for node.js
12 lines (9 loc) • 389 B
JavaScript
const TokenValidationError = require("./TokenValidationError");
class UnsupportedAlgorithmError extends TokenValidationError {
constructor(token, alg, message = `Algorithm ${alg} specified in token header is not supported.`) {
super(token, message);
this.name = "UnsupportedAlgorithmError";
this.alg = alg;
}
}
module.exports = UnsupportedAlgorithmError;