@sap/xssec
Version:
XS Advanced Container Security API for node.js
14 lines (11 loc) • 391 B
JavaScript
const TokenValidationError = require("./TokenValidationError");
class X5tError extends TokenValidationError {
/** @type {String} client certificate used for x5t validation */
cert;
constructor(token, cert, message = "X5t validation of token failed.") {
super(token, message);
this.name = "X5tError";
this.cert = cert;
}
}
module.exports = X5tError;