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

# RSAPublicKey

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

```csharp
public class RSAPublicKey : PublicKey
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → [`PublicKey`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey) → `RSAPublicKey`

## Construtores

### `RSAPublicKey(RSAParameters)`

```csharp
public RSAPublicKey(RSAParameters rsaParameters)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `rsaParameters` | [`RSAParameters`](https://learn.microsoft.com/dotnet/api/system.security.cryptography.rsaparameters) |  |

---

## Propriedades

### `Algorithm`

```csharp
public override PKAlgorithm Algorithm { get; }
```

**Retorno**

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

---

### `KeySize`

```csharp
public override int KeySize { get; }
```

**Retorno**

[`int`](https://learn.microsoft.com/dotnet/api/system.int32)

---

### `RSAParameters`

```csharp
public RSAParameters RSAParameters { get; }
```

**Retorno**

[`RSAParameters`](https://learn.microsoft.com/dotnet/api/system.security.cryptography.rsaparameters)

---

## Métodos

### `IsEquivalent(RSAPublicKey)`

```csharp
public bool IsEquivalent(RSAPublicKey other)
```

**Parâmetros**

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

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

## Membros herdados

[`GetInstance(AsymmetricAlgorithm)`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#getinstance-system-security-cryptography-asymmetricalgorithm), [`Decode(string)`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#decode-system-string), [`Decode(byte[])`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#decode-system-byte), [`IsEquivalent(PublicKey)`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#isequivalent-lacuna-pki-publickey), [`GetSignatureCsp(DigestAlgorithm)`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#getsignaturecsp-lacuna-pki-digestalgorithm), [`GetEncryptionCsp()`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#getencryptioncsp), [`VerifyData(DigestAlgorithm, byte[], byte[])`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#verifydata-lacuna-pki-digestalgorithm-system-byte-system-byte), [`VerifyHash(DigestAlgorithm, byte[], byte[])`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#verifyhash-lacuna-pki-digestalgorithm-system-byte-system-byte), [`GetEncodedValue()`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#getencodedvalue), [`GetPemEncoded()`](https://docs.lacunasoftware.com/api/Lacuna.Pki/PublicKey#getpemencoded), [`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)
