33 references to TrustLevel
Templates.Mvc.Tests (33)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
357
var
trustLevel = TrustCertificate(certificate);
360
case
TrustLevel
.Full:
363
case
TrustLevel
.Partial:
366
case
TrustLevel
.None:
483
public abstract
TrustLevel
GetTrustLevel(X509Certificate2 certificate);
487
/// <remarks>Implementations may choose to throw, rather than returning <see cref="
TrustLevel
.None"/>.</remarks>
488
protected abstract
TrustLevel
TrustCertificateCore(X509Certificate2 certificate);
712
internal
TrustLevel
TrustCertificate(X509Certificate2 certificate)
720
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)
51
public override
TrustLevel
GetTrustLevel(X509Certificate2 certificate)
147
?
TrustLevel
.Partial
148
:
TrustLevel
.Full
149
:
TrustLevel
.None;
184
protected override
TrustLevel
TrustCertificateCore(X509Certificate2 certificate)
235
return
TrustLevel
.None;
244
return
TrustLevel
.None;
328
return
TrustLevel
.None;
355
?
TrustLevel
.Partial
356
:
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;