constructor(params) {
    this._validateParams(params);
    const { title, warning, solution, check } = params;

    this.title = title;
    this.warning = warning;
    this.solution = solution;
    this.check = check;

    // Set default properties
    this._checkState = CheckState.none;
    this.error;
  }
Constructs a new security check.
@param {Object} params The parameters.
@param {String} params.title The title.
@param {String} params.warning The warning message if the check fails.
@param {String} params.solution The solution to fix the check.
@param {Promise} params.check The check as synchronous or asynchronous function.