33 references to TrustLevel
Templates.Blazor.Tests (33)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
402
var
trustLevel = TrustCertificate(certificate);
405
case
TrustLevel
.Full:
408
case
TrustLevel
.Partial:
411
case
TrustLevel
.None:
528
public abstract
TrustLevel
GetTrustLevel(X509Certificate2 certificate);
532
/// <remarks>Implementations may choose to throw, rather than returning <see cref="
TrustLevel
.None"/>.</remarks>
533
protected abstract
TrustLevel
TrustCertificateCore(X509Certificate2 certificate);
763
internal
TrustLevel
TrustCertificate(X509Certificate2 certificate)
771
var
trustLevel = TrustCertificateCore(certificate);
src\Shared\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;
src\Shared\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;
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (6)
74
protected override
TrustLevel
TrustCertificateCore(X509Certificate2 certificate)
82
return
TrustLevel
.Full;
92
return
TrustLevel
.Full;
120
public override
TrustLevel
GetTrustLevel(X509Certificate2 certificate)
124
return isTrusted ?
TrustLevel
.Full :
TrustLevel
.None;