33 references to TrustLevel
Templates.Blazor.WebAssembly.Auth.Tests (33)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
459var trustLevel = TrustCertificate(certificate); 462case TrustLevel.Full: 465case TrustLevel.Partial: 468case TrustLevel.None: 585public abstract TrustLevel GetTrustLevel(X509Certificate2 certificate); 589/// <remarks>Implementations may choose to throw, rather than returning <see cref="TrustLevel.None"/>.</remarks> 590protected abstract TrustLevel TrustCertificateCore(X509Certificate2 certificate); 829internal TrustLevel TrustCertificate(X509Certificate2 certificate) 837var trustLevel = TrustCertificateCore(certificate);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (8)
85protected override TrustLevel TrustCertificateCore(X509Certificate2 publicCertificate) 87var oldTrustLevel = GetTrustLevel(publicCertificate); 88if (oldTrustLevel != TrustLevel.None) 90Debug.Assert(oldTrustLevel == TrustLevel.Full); // Mac trust is all or nothing 114return TrustLevel.Full; 151public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None;
src\Shared\CertificateGeneration\UnixCertificateManager.cs (10)
56public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 166? TrustLevel.Partial 167: TrustLevel.Full 168: TrustLevel.None; 203protected override TrustLevel TrustCertificateCore(X509Certificate2 certificate) 254return TrustLevel.None; 263return TrustLevel.None; 347return TrustLevel.None; 439? TrustLevel.Partial 440: TrustLevel.Full;
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (6)
74protected override TrustLevel TrustCertificateCore(X509Certificate2 certificate) 82return TrustLevel.Full; 92return TrustLevel.Full; 120public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 124return isTrusted ? TrustLevel.Full : TrustLevel.None;