Record Class RedactionResult
java.lang.Object
java.lang.Record
com.shaft.pilot.security.RedactionResult
- Record Components:
redactedText- sanitized primary textredactedEvidence- sanitized evidenceappliedRules- names of rules that changed contentremovedFields- field or attribute names removed without original valuessafeSummary- safe summary suitable for audit logs
-
Constructor Summary
ConstructorsConstructorDescriptionRedactionResult(String redactedText, List<EvidenceReference> redactedEvidence, Set<String> appliedRules, Set<String> removedFields, String safeSummary) Creates an immutable redaction result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedRulesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theredactedEvidencerecord component.Returns the value of theredactedTextrecord component.Returns the value of theremovedFieldsrecord component.Returns the value of thesafeSummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RedactionResult
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
redactedText
Returns the value of theredactedTextrecord component.- Returns:
- the value of the
redactedTextrecord component
-
redactedEvidence
Returns the value of theredactedEvidencerecord component.- Returns:
- the value of the
redactedEvidencerecord component
-
appliedRules
Returns the value of theappliedRulesrecord component.- Returns:
- the value of the
appliedRulesrecord component
-
removedFields
Returns the value of theremovedFieldsrecord component.- Returns:
- the value of the
removedFieldsrecord component
-
safeSummary
Returns the value of thesafeSummaryrecord component.- Returns:
- the value of the
safeSummaryrecord component
-