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

# ValidationContext

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

Representes a trusted validation artifacts object

```csharp
public class ValidationContext
```

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

## Construtores

### `ValidationContext()`

```csharp
public ValidationContext()
```

---

## Propriedades

### `CertificateStore`

A trusted certificate store

```csharp
public ICertificateStore CertificateStore { get; set; }
```

**Retorno**

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

---

### `CrlStore`

A trusted CRL store holding valid CRLs for the alleged DateReference

```csharp
public ICrlStore CrlStore { get; set; }
```

**Retorno**

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

---

### `DateReference`

A trusted date reference for the validation context

```csharp
public DateTimeOffset DateReference { get; set; }
```

**Retorno**

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

---

## Métodos

### `Create(Dss, DateTimeOffset)`

Creates a validation context with all DSS dictionary artifact stores and a date reference

```csharp
public static ValidationContext Create(Dss padesDss, DateTimeOffset dateReference)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `padesDss` | [`Dss`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Pades/Dss) |  |
| `dateReference` | [`DateTimeOffset`](https://learn.microsoft.com/dotnet/api/system.datetimeoffset) |  |

**Retorno**

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

---

## 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)
