Share via


ITimeLimitedDataProtector 介面

定義

介面,可提供承載具有有限存留期的資料保護服務。

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

備註

承載存留期應該有點短。 透過這項機制保護的承載不適用於長期持續性 (,例如,超過數周) 。

方法

CreateProtector(String)

ITimeLimitedDataProtector建立指定的用途。

Protect(Byte[])

以密碼編譯方式保護一段純文字資料。

(繼承來源 IDataProtector)
Protect(Byte[], DateTimeOffset)

以密碼編譯方式保護一段純文字資料,並在所選時間過期資料。

Unprotect(Byte[])

以密碼編譯方式解除保護受保護的資料片段。

(繼承來源 IDataProtector)
Unprotect(Byte[], DateTimeOffset)

以密碼編譯方式解除保護受保護的資料片段。

擴充方法

Protect(ITimeLimitedDataProtector, Byte[], TimeSpan)

以密碼編譯方式保護一段純文字資料,在經過指定的時間量之後過期資料。

Protect(ITimeLimitedDataProtector, String, DateTimeOffset)

以密碼編譯方式保護一段純文字資料,並在所選時間過期資料。

Protect(ITimeLimitedDataProtector, String, TimeSpan)

以密碼編譯方式保護一段純文字資料,在經過指定的時間量之後過期資料。

ToTimeLimitedDataProtector(IDataProtector)

IDataProtector 轉換成 ITimeLimitedDataProtector ,讓承載可以受到有限存留期的保護。

Unprotect(ITimeLimitedDataProtector, String, DateTimeOffset)

以密碼編譯方式解除保護受保護的資料片段。

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

IDataProtector建立指定的用途清單。

CreateProtector(IDataProtectionProvider, String, String[])

IDataProtector建立指定的用途清單。

Protect(IDataProtector, String)

以密碼編譯方式保護一段純文字資料。

Unprotect(IDataProtector, String)

以密碼編譯方式解除保護受保護的資料片段。

適用於