語言

ISpanDataProtector 介面

定義

一個能提供資料保護服務的介面。 是 的 IDataProtector優化版本。

public interface ISpanDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector
type ISpanDataProtector = interface
    interface IDataProtector
    interface IDataProtectionProvider
Public Interface ISpanDataProtector
Implements IDataProtector
實作

方法

名稱 Description
CreateProtector(String)

創造一個 IDataProtector 既定的目標。

(繼承來源 IDataProtectionProvider)
Protect(Byte[])

密碼學保護的是一段明文字資料。

(繼承來源 IDataProtector)
Protect<TWriter>(ReadOnlySpan<Byte>, TWriter)

密碼學保護一段明文資料,並將結果寫入緩衝區寫入器。

Unprotect(Byte[])

密碼學上會解除受保護資料的保護。

(繼承來源 IDataProtector)
Unprotect<TWriter>(ReadOnlySpan<Byte>, TWriter)

密碼學上會解除受保護的資料,並將結果寫入緩衝區寫入器。

擴充方法

名稱 Description
CreateProtector(IDataProtectionProvider, IEnumerable<String>)

建立 IDataProtector 一份既定的目的清單。

CreateProtector(IDataProtectionProvider, String, String[])

建立 IDataProtector 一份既定的目的清單。

Protect(IDataProtector, String)

密碼學保護的是一段明文字資料。

ToTimeLimitedDataProtector(IDataProtector)

將 轉換為 IDataProtector , ITimeLimitedDataProtector 使有效載荷能在有限壽命內獲得保護。

Unprotect(IDataProtector, String)

密碼學上會解除受保護資料的保護。

適用於