UNPKG

@sap/xssec

Version:

XS Advanced Container Security API for node.js

23 lines (18 loc) 706 B
const ValidationError = require("./ValidationError"); class InvalidClientCertificateError extends ValidationError { /** @type {Error} Error encountered during parsing */ #parseError; constructor(clientCertificate, parseError, message = `The forwarded client certificate could not be parsed as X509 certificate: ${parseError.message}`) { super(message); this.name = "InvalidClientCertificateError"; this.clientCertificate = clientCertificate; this.parseError = parseError; } get parseError() { return this.#parseError; } set parseError(value) { this.#parseError = value; } } module.exports = InvalidClientCertificateError;