33 references to TrustLevel
aspire (33)
Certificates\CertificateGeneration\CertificateManager.cs (9)
474
var
trustLevel = TrustCertificate(certificate);
477
case
TrustLevel
.Full:
480
case
TrustLevel
.Partial:
488
case
TrustLevel
.None:
627
public abstract
TrustLevel
GetTrustLevel(X509Certificate2 certificate);
631
/// <remarks>Implementations may choose to throw, rather than returning <see cref="
TrustLevel
.None"/>.</remarks>
632
protected abstract
TrustLevel
TrustCertificateCore(X509Certificate2 certificate);
871
internal
TrustLevel
TrustCertificate(X509Certificate2 certificate)
879
var
trustLevel = TrustCertificateCore(certificate);
Certificates\CertificateGeneration\MacOSCertificateManager.cs (8)
85
protected override
TrustLevel
TrustCertificateCore(X509Certificate2 publicCertificate)
87
var
oldTrustLevel = GetTrustLevel(publicCertificate);
88
if (oldTrustLevel !=
TrustLevel
.None)
90
Debug.Assert(oldTrustLevel ==
TrustLevel
.Full); // Mac trust is all or nothing
114
return
TrustLevel
.Full;
151
public override
TrustLevel
GetTrustLevel(X509Certificate2 certificate)
169
return checkTrustProcess.ExitCode == 0 ?
TrustLevel
.Full :
TrustLevel
.None;
Certificates\CertificateGeneration\UnixCertificateManager.cs (10)
56
public override
TrustLevel
GetTrustLevel(X509Certificate2 certificate)
166
?
TrustLevel
.Partial
167
:
TrustLevel
.Full
168
:
TrustLevel
.None;
203
protected override
TrustLevel
TrustCertificateCore(X509Certificate2 certificate)
254
return
TrustLevel
.None;
263
return
TrustLevel
.None;
347
return
TrustLevel
.None;
439
?
TrustLevel
.Partial
440
:
TrustLevel
.Full;
Certificates\CertificateGeneration\WindowsCertificateManager.cs (6)
72
protected override
TrustLevel
TrustCertificateCore(X509Certificate2 certificate)
80
return
TrustLevel
.Full;
90
return
TrustLevel
.Full;
118
public override
TrustLevel
GetTrustLevel(X509Certificate2 certificate)
122
return isTrusted ?
TrustLevel
.Full :
TrustLevel
.None;