Class KeyUsage
The key usage, represents the cryptographic operations of keys.
Inheritance
System.Object
KeyUsage
Namespace: Amazon.CDK.AWS.KMS
Assembly: Amazon.CDK.AWS.KMS.dll
Syntax (csharp)
public sealed class KeyUsage : Enum
Syntax (vb)
Public NotInheritable Class KeyUsage
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var key = new Key(this, "MyKey", new KeyProps {
KeySpec = KeySpec.ECC_SECG_P256K1, // Default to SYMMETRIC_DEFAULT
KeyUsage = KeyUsage.SIGN_VERIFY
});
Synopsis
Fields
ENCRYPT_DECRYPT | Encryption and decryption. |
SIGN_VERIFY | Signing and verification. |
value__ |
Fields
ENCRYPT_DECRYPT
Encryption and decryption.
public const KeyUsage ENCRYPT_DECRYPT
Field Value
Type | Description |
---|---|
KeyUsage |
SIGN_VERIFY
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |