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

# SignatureFinisher

**Namespace:** `Lacuna.RestPki.Client`  
**Assembly:** `Lacuna.RestPki.Client`  
_Class_

```csharp
public abstract class SignatureFinisher
```

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

## Construtores

### `SignatureFinisher(RestPkiClient)`

```csharp
public SignatureFinisher(RestPkiClient client)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `client` | [`RestPkiClient`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/RestPkiClient) |  |

---

## Campos

### `CallbackArgument`

```csharp
protected string CallbackArgument
```

**Retorno**

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

---

### `CertificateInfo`

```csharp
protected PKCertificate CertificateInfo
```

**Retorno**

[`PKCertificate`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PKCertificate)

---

### `Client`

```csharp
protected RestPkiClient Client
```

**Retorno**

[`RestPkiClient`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/RestPkiClient)

---

### `Done`

```csharp
protected bool Done
```

**Retorno**

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

---

## Propriedades

### `Signature`

```csharp
public byte[] Signature { get; set; }
```

**Retorno**

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

---

### `Token`

```csharp
public string Token { get; set; }
```

**Retorno**

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

---

## Métodos

### `Finish()`

```csharp
public abstract byte[] Finish()
```

**Retorno**

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

---

### `FinishAsync()`

```csharp
public abstract Task<byte[]> FinishAsync()
```

**Retorno**

[`Task<byte[]>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)

---

### `GetCallbackArgument()`

```csharp
public string GetCallbackArgument()
```

**Retorno**

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

---

### `GetCertificateInfo()`

```csharp
public PKCertificate GetCertificateInfo()
```

**Retorno**

[`PKCertificate`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PKCertificate)

---

### `SetSignature(byte[])`

```csharp
public void SetSignature(byte[] signature)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `signature` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

---

### `SetToken(string)`

```csharp
public void SetToken(string token)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `token` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

---

## Membros herdados

[`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [`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)
