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

# CertificateValidationOptions

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

```csharp
public class CertificateValidationOptions
```

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

## Construtores

### `CertificateValidationOptions(ITrustArbitrator)`

```csharp
public CertificateValidationOptions(ITrustArbitrator trustArbitrator)
```

**Parâmetros**

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

---

## Propriedades

### `CertificateStore`

Certificate store to assist the chain loading

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

**Retorno**

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

---

### `DateReference`

The dete reference for the validation. Date time now is the default.

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

**Retorno**

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

---

### `PrioritizeOcsp`

Denotes if it is to prioritize the revocation status verification by OCSP over CRL.
For an SDK global effect, see PkiConfig.PrioritizeOcsp property.

```csharp
public bool PrioritizeOcsp { get; set; }
```

**Retorno**

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

---

### `QuickValidation`

Denotes if it is to quick validate the certificate. Quick validation will ignore any revocation unknownness errors and set it as warnings.

```csharp
public bool QuickValidation { get; set; }
```

**Retorno**

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

---

### `TrustArbitrator`

```csharp
public ITrustArbitrator TrustArbitrator { get; set; }
```

**Retorno**

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

---

### `ValidateIssuer`

```csharp
public bool ValidateIssuer { get; set; }
```

**Retorno**

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

---

### `ValidateIssuerSignature`

```csharp
public bool ValidateIssuerSignature { get; set; }
```

**Retorno**

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

---

### `ValidateRevocationStatus`

```csharp
public bool ValidateRevocationStatus { get; set; }
```

**Retorno**

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

---

### `ValidateRootTrust`

```csharp
public bool ValidateRootTrust { get; set; }
```

**Retorno**

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

---

### `ValidateValidity`

```csharp
public bool ValidateValidity { get; set; }
```

**Retorno**

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

---

### `ValidationContext`

A validation context object to be strictly used in certificate validation.
If set, the certificate validation will be performed using the ValidationContext's artifacts alone

```csharp
public ValidationContext ValidationContext { get; set; }
```

**Retorno**

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

---

## Métodos

### `GetFailureLevel(ValidationItemTypes)`

```csharp
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
```

**Parâmetros**

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

**Retorno**

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

---

### `SetFailureLevel(ValidationItemTypes, ValidationFailureLevels)`

```csharp
public void SetFailureLevel(ValidationItemTypes failureType, ValidationFailureLevels level)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `failureType` | [`ValidationItemTypes`](https://docs.lacunasoftware.com/api/Lacuna.Pki/ValidationItemTypes) |  |
| `level` | [`ValidationFailureLevels`](https://docs.lacunasoftware.com/api/Lacuna.Pki/ValidationFailureLevels) |  |

---

### `SetStaticGracePeriod(TimeSpan)`

The time period that permits the certificate revocation information to propagate through the revocation process to relying parties

```csharp
public void SetStaticGracePeriod(TimeSpan gracePeriod)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `gracePeriod` | [`TimeSpan`](https://learn.microsoft.com/dotnet/api/system.timespan) | Grace period timespan |

**Comentários**

A grace period permits certificate revocation information to propagate through the revocation processes.
This period could extend from the time an authorized entity requests certificate revocation to when the
information is available for the relying party to use. In order to make sure that the certificate was not
revoked at the time the signature was time-marked or time-stamped, verifiers should wait until the end of
the grace period.

---

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