IPersistedDataProtector 接口

定义

一个接口,可为已保存到长期存储的数据提供数据保护服务。

public interface class IPersistedDataProtector : Microsoft::AspNetCore::DataProtection::IDataProtector
public interface IPersistedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector
type IPersistedDataProtector = interface
    interface IDataProtector
    interface IDataProtectionProvider
Public Interface IPersistedDataProtector
Implements IDataProtector
实现

方法

CreateProtector(String)

IDataProtector创建给定的用途。

(继承自 IDataProtectionProvider)
DangerousUnprotect(Byte[], Boolean, Boolean, Boolean)

以加密方式取消保护一段数据,可以选择忽略因吊销用于保护有效负载的加密密钥而导致的故障。

Protect(Byte[])

以加密方式保护一段纯文本数据。

(继承自 IDataProtector)
Unprotect(Byte[])

以加密方式取消保护一段受保护的数据。

(继承自 IDataProtector)

扩展方法

ToTimeLimitedDataProtector(IDataProtector)

IDataProtector 转换为 , ITimeLimitedDataProtector 以便可以使用有限生存期保护有效负载。

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

IDataProtector创建给定的用途列表。

CreateProtector(IDataProtectionProvider, String, String[])

IDataProtector创建给定的用途列表。

Protect(IDataProtector, String)

以加密方式保护一段纯文本数据。

Unprotect(IDataProtector, String)

以加密方式取消保护一段受保护的数据。

适用于