KeyUsage object

[The KeyUsage object is available for use in the operating systems specified in the Requirements section. Instead, use the X509EnhancedKeyUsageExtension Class in the System.Security.Cryptography.X509Certificates namespace.]

The KeyUsage object provides read-only access to key usage properties of a certificate.

Members

The KeyUsage object has these types of members:

Properties

The KeyUsage object has these properties.

Property Access type Description
IsCritical
Read-only
Retrieves a Boolean value that indicates whether the KeyUsage extension is marked critical.
IsCRLSignEnabled
Read-only
Retrieves a Boolean value that indicates whether the CRLSign bit is set.
IsDataEnciphermentEnabled
Read-only
Retrieves a Boolean value that indicates whether the dataEncipherment bit is set.
IsDecipherOnlyEnabled
Read-only
Retrieves a Boolean value that indicates whether the decipherOnly bit is set.
IsDigitalSignatureEnabled
Read-only
Retrieves a Boolean value that indicates whether the digitalSignature bit is set.
IsEncipherOnlyEnabled
Read-only
Retrieves a Boolean value that indicates whether the encipherOnly bit is set.
IsKeyAgreementEnabled
Read-only
Retrieves a Boolean value that indicates whether the keyAgreement bit is set.
IsKeyCertSignEnabled
Read-only
Retrieves a Boolean value that indicates whether the keyCertSign bit is set.
IsKeyEnciphermentEnabled
Read-only
Retrieves a Boolean value that indicates whether the keyEncipherment bit is set.
IsNonRepudiationEnabled
Read-only
Retrieves a Boolean value that indicates whether the nonRepudiationEnabled bit is set.
IsPresent
Read-only
Retrieves a Boolean value that indicates whether the KeyUsage extension is present.
This is the default property.

 

Remarks

The KeyUsage object cannot be created.

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

Cryptography Objects