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

# Ocsp

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

```csharp
public class Ocsp
```

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

## Propriedades

### `Certificates`

```csharp
public List<PKCertificate> Certificates { get; }
```

**Retorno**

[`List<PKCertificate>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)

---

### `CertificateStatus`

The revocation status of the requested certificate

```csharp
public OcspCertificateRevocationStatus CertificateStatus { get; }
```

**Retorno**

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

---

### `NextUpdate`

```csharp
public DateTimeOffset? NextUpdate { get; }
```

**Retorno**

[`DateTimeOffset?`](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)

---

### `ThisUpdate`

```csharp
public DateTimeOffset ThisUpdate { get; }
```

**Retorno**

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

---

## Métodos

### `Decode(byte[])`

```csharp
public static Ocsp Decode(byte[] basicOcspRespContent)
```

**Parâmetros**

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

**Retorno**

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

---

### `Equals(object)`

```csharp
public override bool Equals(object obj)
```

**Parâmetros**

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

**Retorno**

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

---

### `GetEncodedValue()`

Get the OCSP basic  response content

```csharp
public byte[] GetEncodedValue()
```

**Retorno**

[`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) — The original Ocsp response bytes

---

### `GetHashCode()`

```csharp
public override int GetHashCode()
```

**Retorno**

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

---

## Membros herdados

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