Share via


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

KeyOperation(String)

Initializes a new instance of the KeyOperation structure.

Properties

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.

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

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

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