Class ValidationResults
Inheritance
ValidationResults
Assembly: Lacuna.Pki.dll
Syntax
public class ValidationResults
Constructors
ValidationResults()
Declaration
public ValidationResults()
Properties
Declaration
public int ChecksPerformed { get; }
Property Value
DateReference
The final date reference used for certificate validation. If null, the DateTimeOffset.Now was used.
Declaration
public DateTimeOffset? DateReference { get; }
Property Value
Errors
Declaration
public List<ValidationItem> Errors { get; }
Property Value
HasErrors
Declaration
public bool HasErrors { get; }
Property Value
HasWarnings
Declaration
public bool HasWarnings { get; }
Property Value
IsValid
Declaration
public bool IsValid { get; }
Property Value
PassedChecks
Declaration
public List<ValidationItem> PassedChecks { get; }
Property Value
Summary
Declaration
public string Summary { get; }
Property Value
Warnings
Declaration
public List<ValidationItem> Warnings { get; }
Property Value
Methods
AddError(ValidationItem)
Declaration
public void AddError(ValidationItem item)
Parameters
AddPassedCheck(ValidationItem)
Declaration
public void AddPassedCheck(ValidationItem item)
Parameters
AddPassedCheck(String, Object[])
Declaration
public void AddPassedCheck(string message, params object[] args)
Parameters
AddUsedCrl(Certificate, Crl)
Declaration
public void AddUsedCrl(Certificate validatedCertificate, Crl crl)
Parameters
AddUsedOcsp(Certificate, Ocsp)
Declaration
public void AddUsedOcsp(Certificate validatedCertificate, Ocsp ocsp)
Parameters
AddValidatedCertificate(Certificate)
Declaration
public void AddValidatedCertificate(Certificate certificate)
Parameters
AddWarning(ValidationItem)
Declaration
public void AddWarning(ValidationItem item)
Parameters
ContainsFailure(ValidationItemTypes, Boolean)
Verifies if there is any failure of type failureType on Errors or Warnings.
Declaration
public bool ContainsFailure(ValidationItemTypes failureType, bool recursive = false)
Parameters
Type |
Name |
Description |
ValidationItemTypes |
failureType |
|
Boolean |
recursive |
Verify recursively in inner validations Errors and Warnings
|
Returns
GetAllUsedCrls()
Declaration
public List<Crl> GetAllUsedCrls()
Returns
GetAllUsedOcsps()
Declaration
public List<Ocsp> GetAllUsedOcsps()
Returns
GetAllUsedRevocationValues()
Declaration
public List<UsedRevocationValues> GetAllUsedRevocationValues()
Returns
GetUsedCrls(Certificate)
Declaration
public List<Crl> GetUsedCrls(Certificate validatedCertificate)
Parameters
Returns
GetUsedOcsps(Certificate)
Declaration
public List<Ocsp> GetUsedOcsps(Certificate validatedCertificate)
Parameters
Returns
GetUsedRevocationValues(Certificate)
Declaration
public UsedRevocationValues GetUsedRevocationValues(Certificate validatedCertificate)
Parameters
Returns
GetValidatedCertificates()
Returns all the certificates validated during the validation, starting with leaf certificates and following the certification
path up to the root (if the validation specified issuer validation).
Declaration
public List<Certificate> GetValidatedCertificates()
Returns
MergeWith(ValidationResults)
Declaration
public void MergeWith(ValidationResults other)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides