Interface ITrustArbitrator
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public interface ITrustArbitratorMethods
GetCertificateStore()
Returns a certificate store based on the arbitrator root certificates
Declaration
ICertificateStore GetCertificateStore()Returns
| Type | Description | 
|---|---|
| ICertificateStore | Certificate store based on the arbitrator root certificates. Can be null. | 
Remarks
If that method does not make sense for your implementation or there is no certificate in your arbitrator logic, it can return null.
IsRootTrusted(PKCertificate, Nullable<DateTimeOffset>, out ValidationResults)
Determines whether a given PKCertificate is trusted, optionally outputting a ValidationResults object that represents validations done while asserting the trust status.
Declaration
bool IsRootTrusted(PKCertificate root, DateTimeOffset? dateReference, out ValidationResults vr)Parameters
| Type | Name | Description | 
|---|---|---|
| PKCertificate | root | The certificate for which the trust status must be determined. | 
| Nullable<DateTimeOffset> | dateReference | An optional date reference on which the trust is to be asserted. If null, validation is done considering the present moment (now). | 
| ValidationResults | vr | The retults of the validations necessary to assertain the trust status. Implementors of this interface should set this parameter to null if no validations where required. | 
Returns
| Type | Description | 
|---|---|
| Boolean | Whether the given certificate is to be trusted or not. |