次の方法で共有


RecordingRedactor クラス

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

public class RecordingRedactor

このクラスは、記録時に機密情報を編集するために使用されます

コンストラクターの概要

コンストラクター 説明
RecordingRedactor()

既定の RecordingRedactor 編集セットを使用して のインスタンスを作成します。

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

既定の編集機能のセットを使用して の RecordingRedactor インスタンスを作成し、指定されたカスタム リダクター関数の一覧を追加します。

メソッドの概要

修飾子と型 メソッドと説明
String redact(String redactableString)

機密情報を編集します。

メソッドの継承元: java.lang.Object

コンストラクターの詳細

RecordingRedactor

public RecordingRedactor()

既定の RecordingRedactor 編集セットを使用して のインスタンスを作成します。

RecordingRedactor

public RecordingRedactor(List<>> customRedactors)

既定の編集機能のセットを使用して の RecordingRedactor インスタンスを作成し、指定されたカスタム リダクター関数の一覧を追加します。

パラメーター:

customRedactors - カスタムリダクター関数の一覧。

メソッドの詳細

redact

public String redact(String redactableString)

機密情報を編集します。

パラメーター:

redactableString - スキャンするコンテンツ

戻り値:

編集されたコンテンツ

適用対象