Package org.mockserver.imports
Class ImportRedaction.Options
java.lang.Object
org.mockserver.imports.ImportRedaction.Options
- Enclosing class:
- ImportRedaction
Redaction options for an import. Defaults to redaction enabled with the
built-in sensitive header and body-field lists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportRedaction.Optionsdisabled()static ImportRedaction.Optionsenabled()booleanwithAdditionalSensitiveBodyFields(Collection<String> bodyFields) Add JSON body field names to redact on top ofImportRedaction.DEFAULT_SENSITIVE_BODY_FIELDS.withAdditionalSensitiveHeaders(Collection<String> headerNames) Add header names to redact on top ofFixtureRedactor.defaultSensitiveHeaders().withEnabled(boolean enabled)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
enabled
- Returns:
- options with redaction enabled and the default sensitive lists
-
disabled
- Returns:
- options with redaction disabled (imported values are kept verbatim)
-
withEnabled
-
isEnabled
public boolean isEnabled() -
withAdditionalSensitiveHeaders
Add header names to redact on top ofFixtureRedactor.defaultSensitiveHeaders(). -
withAdditionalSensitiveBodyFields
Add JSON body field names to redact on top ofImportRedaction.DEFAULT_SENSITIVE_BODY_FIELDS.
-