node-ebics-client/lib/middleware/XMLSign.js

17 lines
245 B
JavaScript
Raw Normal View History

2018-05-17 15:03:59 +00:00
'use strict';
const Signer = require('../Signer');
module.exports = class XMLSign {
static go(keys, xml) {
const signer = new Signer(keys, xml);
2018-05-17 15:03:59 +00:00
signer.digest();
signer.sign();
this.data = signer.toXML();
return this.data;
}
};