"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CanonicalizeXml = void 0;
const xmldsigjs_1 = require("xmldsigjs");
class CanonicalizeXml {
    constructor(context) {
        this.context = context;
    }
    async runBuildStep() {
        this.context.updateStatus("Canonicalization of XML...");
        const c14n = new xmldsigjs_1.XmlDsigC14NTransform();
        c14n.LoadInnerXml(this.context.getXmlDoc());
        const canonical = c14n.GetOutput();
        this.context.setXmlString(canonical);
    }
}
exports.CanonicalizeXml = CanonicalizeXml;
