CryptographyClient Class

Definition

A client used to perform cryptographic operations with Azure Key Vault keys.

public class CryptographyClient : Azure.Core.Cryptography.IKeyEncryptionKey
type CryptographyClient = class
    interface IKeyEncryptionKey
Public Class CryptographyClient
Implements IKeyEncryptionKey
Inheritance
CryptographyClient
Implements

Constructors

CryptographyClient()

Initializes a new instance of the CryptographyClient class for mocking.

CryptographyClient(Uri, TokenCredential)

Initializes a new instance of the CryptographyClient class.

CryptographyClient(Uri, TokenCredential, CryptographyClientOptions)

Initializes a new instance of the CryptographyClient class.

Properties

KeyId

Gets the Id of the key used to perform cryptographic operations for the client.

Methods

Decrypt(EncryptionAlgorithm, Byte[], CancellationToken)

Decrypts the specified cipher text.

DecryptAsync(EncryptionAlgorithm, Byte[], CancellationToken)

Decrypts the specified cipher text.

Encrypt(EncryptionAlgorithm, Byte[], CancellationToken)

Encrypts the specified plain text.

EncryptAsync(EncryptionAlgorithm, Byte[], CancellationToken)

Encrypts the specified plain text.

Sign(SignatureAlgorithm, Byte[], CancellationToken)

Signs the specified digest.

SignAsync(SignatureAlgorithm, Byte[], CancellationToken)

Signs the specified digest.

SignData(SignatureAlgorithm, Byte[], CancellationToken)

Signs the specified data.

SignData(SignatureAlgorithm, Stream, CancellationToken)

Signs the specified data.

SignDataAsync(SignatureAlgorithm, Byte[], CancellationToken)

Signs the specified data.

SignDataAsync(SignatureAlgorithm, Stream, CancellationToken)

Signs the specified data.

UnwrapKey(KeyWrapAlgorithm, Byte[], CancellationToken)

Decrypts the specified encrypted key.

UnwrapKeyAsync(KeyWrapAlgorithm, Byte[], CancellationToken)

Decrypts the specified encrypted key.

Verify(SignatureAlgorithm, Byte[], Byte[], CancellationToken)

Verifies the specified signature.

VerifyAsync(SignatureAlgorithm, Byte[], Byte[], CancellationToken)

Verifies the specified signature.

VerifyData(SignatureAlgorithm, Byte[], Byte[], CancellationToken)

Verifies the specified signature.

VerifyData(SignatureAlgorithm, Stream, Byte[], CancellationToken)

Verifies the specified signature.

VerifyDataAsync(SignatureAlgorithm, Byte[], Byte[], CancellationToken)

Verifies the specified signature.

VerifyDataAsync(SignatureAlgorithm, Stream, Byte[], CancellationToken)

Verifies the specified signature.

WrapKey(KeyWrapAlgorithm, Byte[], CancellationToken)

Encrypts the specified key.

WrapKeyAsync(KeyWrapAlgorithm, Byte[], CancellationToken)

Encrypts the specified key.

Explicit Interface Implementations

IKeyEncryptionKey.UnwrapKey(String, ReadOnlyMemory<Byte>, CancellationToken)
IKeyEncryptionKey.UnwrapKeyAsync(String, ReadOnlyMemory<Byte>, CancellationToken)
IKeyEncryptionKey.WrapKey(String, ReadOnlyMemory<Byte>, CancellationToken)
IKeyEncryptionKey.WrapKeyAsync(String, ReadOnlyMemory<Byte>, CancellationToken)

Applies to