---
title: "AzureKey"
description: "Namespace: Lacuna.Pki.AzureConnector"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.Pki.AzureConnector/AzureKey"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# AzureKey

**Namespace:** `Lacuna.Pki.AzureConnector`  
**Assembly:** `Lacuna.Pki.AzureConnector`  
_Class_

```csharp
public class AzureKey : IPrivateKey
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `AzureKey`

## Propriedades

### `PublicKey`

```csharp
public PublicKey PublicKey { get; }
```

**Retorno**

[`PublicKey`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey)

---

## Métodos

### `GetCertificateWithKey(PKCertificate)`

```csharp
public PKCertificateWithKey GetCertificateWithKey(PKCertificate certificate)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `certificate` | [`PKCertificate`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PKCertificate) |  |

**Retorno**

[`PKCertificateWithKey`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PKCertificateWithKey)

---

### `GetEncryptionCsp()`

```csharp
public IEncryptionCsp GetEncryptionCsp()
```

**Retorno**

[`IEncryptionCsp`](https://docs.lacunasoftware.com/api/Lacuna.Pki/IEncryptionCsp)

---

### `GetSignatureCsp(DigestAlgorithm)`

```csharp
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `digestAlgorithm` | [`DigestAlgorithm`](https://docs.lacunasoftware.com/api/Lacuna.Pki/DigestAlgorithm) |  |

**Retorno**

[`ISignatureCsp`](https://docs.lacunasoftware.com/api/Lacuna.Pki/ISignatureCsp)

---

## Membros herdados

[`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)
