33 references to TrustLevel
aspire (33)
Certificates\CertificateGeneration\CertificateManager.cs (9)
474var trustLevel = TrustCertificate(certificate); 477case TrustLevel.Full: 480case TrustLevel.Partial: 488case TrustLevel.None: 627public abstract TrustLevel GetTrustLevel(X509Certificate2 certificate); 631/// <remarks>Implementations may choose to throw, rather than returning <see cref="TrustLevel.None"/>.</remarks> 632protected abstract TrustLevel TrustCertificateCore(X509Certificate2 certificate); 871internal TrustLevel TrustCertificate(X509Certificate2 certificate) 879var trustLevel = TrustCertificateCore(certificate);
Certificates\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;
Certificates\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;
Certificates\CertificateGeneration\WindowsCertificateManager.cs (6)
72protected override TrustLevel TrustCertificateCore(X509Certificate2 certificate) 80return TrustLevel.Full; 90return TrustLevel.Full; 118public override TrustLevel GetTrustLevel(X509Certificate2 certificate) 122return isTrusted ? TrustLevel.Full : TrustLevel.None;