KeyOperation Struct

Definition

An operation that can be performed with the key.

public readonly struct KeyOperation : IEquatable<Azure.Security.KeyVault.Keys.KeyOperation>
type KeyOperation = struct
Public Structure KeyOperation
Implements IEquatable(Of KeyOperation)
Inheritance
KeyOperation
Implements

Constructors

Name Description
KeyOperation(String)

Initializes a new instance of the KeyOperation structure.

Properties

Name Description
Decrypt

Gets a value that indicates the key can be used to decrypt with the DecryptAsync(EncryptionAlgorithm, Byte[], CancellationToken) or Decrypt(EncryptionAlgorithm, Byte[], CancellationToken) methods.

Encrypt

Gets a value that indicates the key can be used to encrypt with the EncryptAsync(EncryptionAlgorithm, Byte[], CancellationToken) or Encrypt(EncryptionAlgorithm, Byte[], CancellationToken) methods.

Import

Gets a value that indicates the key can be imported during creation using the ImportKeyAsync(ImportKeyOptions, CancellationToken) or ImportKey(ImportKeyOptions, CancellationToken) methods.

SecureUnwrapKey

Gets a value that indicates the key can be used to securely unwrap a key into a trusted execution environment (TEE) with the SecureUnwrapKeyAsync(SecureKeyWrapAlgorithm, Byte[], String, CancellationToken) or SecureUnwrapKey(SecureKeyWrapAlgorithm, Byte[], String, CancellationToken) methods.

SecureWrapKey

Gets a value that indicates the key can be used to securely wrap a key generated inside a trusted execution environment (TEE) with the SecureWrapKeyAsync(SecureKeyWrapAlgorithm, CancellationToken) or SecureWrapKey(SecureKeyWrapAlgorithm, CancellationToken) methods.

Sign

Gets a value that indicates the key can be used to sign with the SignAsync(SignatureAlgorithm, Byte[], CancellationToken) or Sign(SignatureAlgorithm, Byte[], CancellationToken) methods.

UnwrapKey

Gets a value that indicates the key can be used to unwrap another key with the UnwrapKeyAsync(KeyWrapAlgorithm, Byte[], CancellationToken) or UnwrapKey(KeyWrapAlgorithm, Byte[], CancellationToken) methods.

Verify

Gets a value that indicates the key can be used to verify with the VerifyAsync(SignatureAlgorithm, Byte[], Byte[], CancellationToken) or Verify(SignatureAlgorithm, Byte[], Byte[], CancellationToken) methods.

WrapKey

Gets a value that indicates the key can be used to wrap another key with the WrapKeyAsync(KeyWrapAlgorithm, Byte[], CancellationToken) or WrapKey(KeyWrapAlgorithm, Byte[], CancellationToken) methods.

Methods

Name Description
Equals(KeyOperation)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(KeyOperation, KeyOperation)

Determines if two KeyOperation values are the same.

Implicit(String to KeyOperation)

Converts a string to a KeyOperation.

Inequality(KeyOperation, KeyOperation)

Determines if two KeyOperation values are different.

Applies to