"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataSanitizer = void 0;
const utils_1 = require("./utils");
const json_1 = require("../serialization/json");
class DataSanitizer {
    keysToSanitize = {
        ['authorization']: '',
        ['access_token']: '',
        ['refresh_token']: '',
        ['subject_token']: '',
        ['token']: '',
        ['client_id']: '',
        ['client_secret']: '',
        ['shared_link']: '',
        ['download_url']: '',
        ['jwt_private_key']: '',
        ['jwt_private_key_passphrase']: '',
        ['password']: '',
    };
    constructor(fields) { }
    /**
       * @param {{
          readonly [key: string]: string;
      }} headers
       * @returns {{
          readonly [key: string]: string;
      }}
       */
    sanitizeHeaders(headers) {
        return (0, utils_1.sanitizeMap)(headers, this.keysToSanitize);
    }
    /**
     * @param {SerializedData} body
     * @returns {SerializedData}
     */
    sanitizeBody(body) {
        return (0, json_1.sanitizeSerializedData)(body, this.keysToSanitize);
    }
}
exports.DataSanitizer = DataSanitizer;
//# sourceMappingURL=logging.js.map