語言

HmacRedactor 類別

定義

代表使用 HMAC SHA-256 編碼已塗黑資料的編輯者。

public ref class HmacRedactor sealed : Microsoft::Extensions::Compliance::Redaction::Redactor
public sealed class HmacRedactor : Microsoft.Extensions.Compliance.Redaction.Redactor
type HmacRedactor = class
    inherit Redactor
Public NotInheritable Class HmacRedactor
Inherits Redactor
繼承
HmacRedactor

建構函式

名稱 Description
HmacRedactor(IOptions<HmacRedactorOptions>)

初始化 HmacRedactor 類別的新執行個體。

方法

名稱 Description
GetRedactedLength(ReadOnlySpan<Char>)

透過刪除輸入,取得產生的字元數。

GetRedactedLength(String)

透過刪除輸入,取得產生的字元數。

(繼承來源 Redactor)
Redact(ReadOnlySpan<Char>, Span<Char>)

刪除可能敏感的資料。

Redact(ReadOnlySpan<Char>)

刪除可能敏感的資料。

(繼承來源 Redactor)
Redact(String, Span<Char>)

刪除可能敏感的資料。

(繼承來源 Redactor)
Redact(String)

刪除可能敏感的資料。

(繼承來源 Redactor)
Redact<T>(T, Span<Char>, String, IFormatProvider)

刪除可能敏感的資料。

(繼承來源 Redactor)
Redact<T>(T, String, IFormatProvider)

刪除可能敏感的資料。

(繼承來源 Redactor)
TryRedact<T>(T, Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

試圖遮蔽可能敏感的資料。

(繼承來源 Redactor)

適用於