This documentation is archived and is not being maintained.

X509KeyUsageFlags Enumeration

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

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

public enum X509KeyUsageFlags
/** @attribute FlagsAttribute() */ 
public enum X509KeyUsageFlags
public enum X509KeyUsageFlags

 Member nameDescription
CrlSignThe key can be used to sign a certificate revocation list (CRL). 
DataEnciphermentThe key can be used for data encryption. 
DecipherOnlyThe key can be used for decryption only. 
DigitalSignatureThe key can be used as a digital signature. 
EncipherOnlyThe key can be used for encryption only. 
KeyAgreementThe key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm. 
KeyCertSignThe key can be used to sign certificates. 
KeyEnciphermentThe key can be used for key encryption. 
NoneNo key usage parameters. 
NonRepudiationThe 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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0