Show / Hide Table of Contents

Class CertificateValidationOptions

Inheritance
Object
CertificateValidationOptions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public class CertificateValidationOptions

Constructors

CertificateValidationOptions(ITrustArbitrator)

Declaration
public CertificateValidationOptions(ITrustArbitrator trustArbitrator)
Parameters
Type Name Description
ITrustArbitrator trustArbitrator

Properties

CertificateStore

Certificate store to assist the chain loading

Declaration
public ICertificateStore CertificateStore { get; set; }
Property Value
Type Description
ICertificateStore

DateReference

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

Declaration
public DateTimeOffset? DateReference { get; set; }
Property Value
Type Description
Nullable<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.

Declaration
public bool PrioritizeOcsp { get; set; }
Property Value
Type Description
Boolean

QuickValidation

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

Declaration
public bool QuickValidation { get; set; }
Property Value
Type Description
Boolean

TrustArbitrator

Declaration
public ITrustArbitrator TrustArbitrator { get; set; }
Property Value
Type Description
ITrustArbitrator

ValidateIssuer

Declaration
public bool ValidateIssuer { get; set; }
Property Value
Type Description
Boolean

ValidateIssuerSignature

Declaration
public bool ValidateIssuerSignature { get; set; }
Property Value
Type Description
Boolean

ValidateRevocationStatus

Declaration
public bool ValidateRevocationStatus { get; set; }
Property Value
Type Description
Boolean

ValidateRootTrust

Declaration
public bool ValidateRootTrust { get; set; }
Property Value
Type Description
Boolean

ValidateValidity

Declaration
public bool ValidateValidity { get; set; }
Property Value
Type Description
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

Declaration
public ValidationContext ValidationContext { get; set; }
Property Value
Type Description
ValidationContext

Methods

GetFailureLevel(ValidationItemTypes)

Declaration
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
Parameters
Type Name Description
ValidationItemTypes failureType
Returns
Type Description
ValidationFailureLevels

SetFailureLevel(ValidationItemTypes, ValidationFailureLevels)

Declaration
public void SetFailureLevel(ValidationItemTypes failureType, ValidationFailureLevels level)
Parameters
Type Name Description
ValidationItemTypes failureType
ValidationFailureLevels level

SetStaticGracePeriod(TimeSpan)

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

Declaration
public void SetStaticGracePeriod(TimeSpan gracePeriod)
Parameters
Type Name Description
TimeSpan gracePeriod

Grace period timespan

Remarks

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.

Back to top Copyright © 2015-2020 Lacuna Software