Sdílet prostřednictvím


RecordingRedactor Class

  • java.lang.Object
    • com.azure.core.test.models.RecordingRedactor

public class RecordingRedactor

This class used to redact the sensitive information when recording

Constructor Summary

Constructor Description
RecordingRedactor()

Creates an instance of RecordingRedactor with a default set of redactors.

RecordingRedactor(List<Function<String,String>> customRedactors)

Creates an instance of RecordingRedactor with a default set of redactors and additionally include the provided list of custom redactor functions.

Method Summary

Modifier and Type Method and Description
String redact(String redactableString)

Redact the sensitive information.

Methods inherited from java.lang.Object

Constructor Details

RecordingRedactor

public RecordingRedactor()

Creates an instance of RecordingRedactor with a default set of redactors.

RecordingRedactor

public RecordingRedactor(List> customRedactors)

Creates an instance of RecordingRedactor with a default set of redactors and additionally include the provided list of custom redactor functions.

Parameters:

customRedactors - A list of custom redactor functions.

Method Details

redact

public String redact(String redactableString)

Redact the sensitive information.

Parameters:

redactableString - the content that will be scan through

Returns:

the redacted content

Applies to