100 references to X509KeyUsageFlags
dotnet-dev-certs (2)
dotnet-svcutil-lib (1)
HttpStress (1)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (8)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
Microsoft.AspNetCore.HttpOverrides.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
netstandard (1)
PresentationUI (1)
System (1)
System.Net.Http (2)
System.Security.Cryptography (37)
System\Security\Cryptography\X509Certificates\FindPal.cs (18)
15private static readonly Dictionary<string, X509KeyUsageFlags> s_keyUsages =
16new Dictionary<string, X509KeyUsageFlags>(NamedKeyUsageFlagsCount, StringComparer.OrdinalIgnoreCase)
18{ "DigitalSignature", X509KeyUsageFlags.DigitalSignature },
19{ "NonRepudiation", X509KeyUsageFlags.NonRepudiation },
20{ "KeyEncipherment", X509KeyUsageFlags.KeyEncipherment },
21{ "DataEncipherment", X509KeyUsageFlags.DataEncipherment },
22{ "KeyAgreement", X509KeyUsageFlags.KeyAgreement },
23{ "KeyCertSign", X509KeyUsageFlags.KeyCertSign },
24{ "CrlSign", X509KeyUsageFlags.CrlSign },
25{ "EncipherOnly", X509KeyUsageFlags.EncipherOnly },
26{ "DecipherOnly", X509KeyUsageFlags.DecipherOnly },
144X509KeyUsageFlags keyUsage = ConfirmedX509KeyUsage(findValue);
184private static X509KeyUsageFlags ConfirmedX509KeyUsage(object findValue)
186if (findValue is X509KeyUsageFlags)
187return (X509KeyUsageFlags)findValue;
190return (X509KeyUsageFlags)(int)findValue;
193return (X509KeyUsageFlags)(uint)findValue;
197X509KeyUsageFlags usageFlags;
System.Security.Cryptography.Pkcs (3)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.Xml (2)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
WebTransportInteractiveSampleApp (1)
WebTransportSampleApp (1)