你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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<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.

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