Class DoctorRedactor

java.lang.Object
com.shaft.doctor.internal.DoctorRedactor

public final class DoctorRedactor extends Object
Structured and textual deterministic redaction for Doctor evidence.
  • Constructor Details

    • DoctorRedactor

      public DoctorRedactor()
  • Method Details

    • redact

      public com.fasterxml.jackson.databind.JsonNode redact(com.fasterxml.jackson.databind.JsonNode input)
      Redacts a JSON tree without retaining removed values.
      Parameters:
      input - input tree
      Returns:
      sanitized copy
    • redact

      public String redact(String input)
      Redacts textual evidence.
      Parameters:
      input - input text
      Returns:
      sanitized text
    • appliedRules

      public List<String> appliedRules()
      Returns sorted applied rule names.
      Returns:
      applied rules
    • removedFields

      public List<String> removedFields()
      Returns sorted removed structured field names.
      Returns:
      removed field names