This topic has not yet been rated - Rate this topic

X509KeyUsageFlags Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Defines how the certificate key can be used. If this value is not defined, the key can be used for any purpose.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in system.dll)

[FlagsAttribute] 
public enum X509KeyUsageFlags
/** @attribute FlagsAttribute() */ 
public enum X509KeyUsageFlags
FlagsAttribute 
public enum X509KeyUsageFlags
  Member name Description
CrlSign The key can be used to sign a certificate revocation list (CRL). 
DataEncipherment The key can be used for data encryption. 
DecipherOnly The key can be used for decryption only. 
DigitalSignature The key can be used as a digital signature. 
EncipherOnly The key can be used for encryption only. 
KeyAgreement The key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm. 
KeyCertSign The key can be used to sign certificates. 
KeyEncipherment The key can be used for key encryption. 
None No key usage parameters. 
NonRepudiation The key can be used for authentication. 

This class is an implementation of a commonly used extension that is mapped by default to the CryptoConfig file. When the Extensions property of the X509Certificate2 class is invoked, this class can be used directly.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ