CngUIPolicy CngUIPolicy CngUIPolicy CngUIPolicy Class

定义

封装访问受保护密钥时下一代加密技术 (CNG) 所显示用户界面 (UI) 的可选配置参数。Encapsulates optional configuration parameters for the user interface (UI) that Cryptography Next Generation (CNG) displays when you access a protected key.

public ref class CngUIPolicy sealed
public sealed class CngUIPolicy
type CngUIPolicy = class
Public NotInheritable Class CngUIPolicy
继承
CngUIPolicyCngUIPolicyCngUIPolicyCngUIPolicy

注解

此类使你能够创建 UI 策略, 用于显示有关关键操作 (如智能卡 PIN 提示) 的提示。This class enables you to create a UI policy for displaying prompts about key operations such as smart card PIN prompts. 它还使你能够强制用户交互访问密钥, 即使密钥存储在软件密钥存储提供程序 (KSP) 而不是智能卡中也是如此。It also enables you to enforce user interaction to access a key, even if the key is stored in a software key storage provider (KSP) instead of in a smart card. 在访问受保护的密钥时, CNG 为 UI 显示这些配置参数。CNG displays these configuration parameters for the UI when you access a protected key.

构造函数

CngUIPolicy(CngUIProtectionLevels) CngUIPolicy(CngUIProtectionLevels) CngUIPolicy(CngUIProtectionLevels) CngUIPolicy(CngUIProtectionLevels)

使用指定的保护级别初始化 CngUIPolicy 类的一个新实例。Initializes a new instance of the CngUIPolicy class by using the specified protection level.

CngUIPolicy(CngUIProtectionLevels, String) CngUIPolicy(CngUIProtectionLevels, String) CngUIPolicy(CngUIProtectionLevels, String) CngUIPolicy(CngUIProtectionLevels, String)

使用指定的保护级别和友好名称初始化 CngUIPolicy 类的一个新实例。Initializes a new instance of the CngUIPolicy class by using the specified protection level and friendly name.

CngUIPolicy(CngUIProtectionLevels, String, String) CngUIPolicy(CngUIProtectionLevels, String, String) CngUIPolicy(CngUIProtectionLevels, String, String) CngUIPolicy(CngUIProtectionLevels, String, String)

使用指定的保护级别、友好名称和说明初始化 CngUIPolicy 类的一个新实例。Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, and description.

CngUIPolicy(CngUIProtectionLevels, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String)

使用指定的保护级别、友好名称、说明字符串和使用上下文初始化 CngUIPolicy 类的一个新实例。Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, description string, and use context.

CngUIPolicy(CngUIProtectionLevels, String, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String, String) CngUIPolicy(CngUIProtectionLevels, String, String, String, String)

使用指定的保护级别、友好名称、说明字符串、使用上下文和标题初始化 CngUIPolicy 类的一个新实例。Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, description string, use context, and title.

属性

CreationTitle CreationTitle CreationTitle CreationTitle

获取由 UI 提示显示的标题。Gets the title that is displayed by the UI prompt.

Description Description Description Description

获取由 UI 提示显示的说明字符串。Gets the description string that is displayed by the UI prompt.

FriendlyName FriendlyName FriendlyName FriendlyName

获取由 UI 提示显示的友好名称。Gets the friendly name that is displayed by the UI prompt.

ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel

获取密钥的 UI 保护级别。Gets the UI protection level for the key.

UseContext UseContext UseContext UseContext

获取对将如何使用密钥的说明。Gets the description of how the key will be used.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于