KeyUsage 物件

[ KeyUsage 物件可用於需求一節中指定的作業系統。 請改用System.Security.Cryptography.X509Certificates命名空間中的X509EnhancedKeyUsageExtension 類別。]

KeyUsage物件提供憑證之金鑰使用方式屬性的唯讀存取權。

成員

KeyUsage物件具有下列類型的成員:

屬性

KeyUsage物件具有這些屬性。

屬性 存取類型 Description
IsCritical
唯讀
擷取布林值,指出 KeyUsage 延伸模組是否標示為重要。
IsCRLSignEnabled
唯讀
擷取布林值,指出是否已設定 CRLSign 位。
IsDataEnciphermentEnabled
唯讀
擷取布林值,指出是否已設定 dataEncipherment 位。
IsDecipherOnlyEnabled
唯讀
擷取布林值,指出是否設定 decipherOnly 位。
IsDigitalSignatureEnabled
唯讀
擷取布林值,指出是否已設定 digitalSignature 位。
IsEncipherOnlyEnabled
唯讀
擷取布林值,指出是否已設定加密位。
IsKeyAgreementEnabled
唯讀
擷取布林值,指出是否已設定 keyAgreement 位。
IsKeyCertSignEnabled
唯讀
擷取布林值,指出是否已設定 keyCertSign 位。
IsKeyEnciphermentEnabled
唯讀
擷取布林值,指出是否已設定 keyEncipherment 位。
IsNonRepudiationEnabled
唯讀
擷取布林值,指出是否已設定 nonRepudiationEnabled 位。
IsPresent
唯讀
擷取布林值,指出 KeyUsage 延伸模組是否存在。
這是預設屬性。

 

備註

無法建立 KeyUsage 物件。

規格需求

需求
可轉散發套件
Windows Server 2003 和 Windows XP 上的 CAPICOM 2.0 或更新版本
DLL
Capicom.dll

另請參閱

密碼編譯物件