All Implemented Interfaces:
Serializable

public class WmiCriterion extends WqlCriterion
Represents a Windows Management Instrumentation (WMI) detection criterion. This criterion allows the execution of WMI queries to identify resources on Windows systems.
See Also:
  • Constructor Details

    • WmiCriterion

      public WmiCriterion(String type, boolean forceSerialization, @NonNull @NonNull String query, String namespace, String expectedResult, String errorMessage)
      Constructor to create an instance of WmiCriterion using a JSON creator.
      Parameters:
      type - Type of the criterion.
      forceSerialization - Flag indicating whether serialization should be forced.
      query - The WMI query associated with the criterion.
      namespace - The namespace for the WMI query.
      expectedResult - The expected result for the criterion.
      errorMessage - The error message associated with the criterion.
  • Method Details

    • copy

      public WmiCriterion copy()
      Description copied from class: WqlCriterion
      Creates a copy of the WqlCriterion instance.
      Specified by:
      copy in class WqlCriterion
      Returns:
      A new instance of the WqlCriterion with the same attributes.
    • toString

      public String toString()
      Overrides:
      toString in class WqlCriterion
    • accept

      public CriterionTestResult accept(ICriterionProcessor criterionProcessor)
      Description copied from class: Criterion
      Accepts the given criterion processor for evaluation.
      Specified by:
      accept in class Criterion
      Parameters:
      criterionProcessor - The criterion processor to accept.
      Returns:
      The result of the criterion test.