79 references to X509FindType
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
200var certificates = store.Certificates.Find(X509FindType.FindBySubjectName, findValue: subject, validOnly: true);
Client.ChannelLayer.IntegrationTests (3)
DuplexChannelWithSynchronizationContext.cs (3)
48X509FindType.FindByThumbprint, 109X509FindType.FindByThumbprint, 185X509FindType.FindByThumbprint,
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
dotnet-svcutil-lib (12)
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
27public X509SecurityTokenProvider(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (4)
883X509FindType findType, object findValue, EndpointAddress target) 893X509FindType findType, object findValue, EndpointAddress target, out X509Certificate2 certificate) 900X509FindType findType, object findValue, EndpointAddress target, bool throwIfMultipleOrNoMatch) 935X509FindType findType, object findValue, EndpointAddress target, int certCount)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (3)
13internal const X509FindType DefaultFindType = X509FindType.FindBySubjectDistinguishedName; 51public void SetCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (4)
17internal const X509FindType DefaultFindType = X509FindType.FindBySubjectDistinguishedName; 97public void SetDefaultCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue) 116public void SetScopedCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue, Uri targetService)
Infrastructure.Common (1)
CertificateManager.cs (1)
170X509Certificate2Collection foundCertificates = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly);
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
41var matchingCerts = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly: true);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (3)
DataProtectionProviderTests.cs (3)
135var certificate = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; 187var certInStore = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; 280Assert.Empty(store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, false));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
CertificateLoader.cs (1)
42foreach (var certificate in storeCertificates.Find(X509FindType.FindBySubjectName, subject, !allowInvalid)
Middleware\HttpsConnectionMiddleware.cs (2)
280var certs = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, validOnly: false); 296var certs = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, validOnly: false);
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
892X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, false); 911X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, cert.Thumbprint, false);
ResolveKeySource.cs (1)
182X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, CertificateThumbprint, false);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
89X509Certificate2Collection matchingRootCertificates = rootCertificates.Find(X509FindType.FindBySubjectDistinguishedName,
netstandard (1)
netstandard.cs (1)
1971[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509FindType))]
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (2)
926collection = collection.Find(X509FindType.FindByTimeValid, DateTime.Now, true /*validOnly*/); 929collection = collection.Find(X509FindType.FindByKeyUsage, X509KeyUsageFlags.DigitalSignature, false /*validOnly*/);
Security.TransportSecurity.IntegrationTests (9)
Https\HttpsTests.4.1.0.cs (5)
45X509FindType.FindByThumbprint, 378X509FindType.FindByThumbprint, 427X509FindType.FindByThumbprint, 488X509FindType.FindByThumbprint, 547X509FindType.FindByThumbprint,
Tcp\ClientCredentialTypeTests.4.1.0.cs (2)
42X509FindType.FindByThumbprint, 94X509FindType.FindByThumbprint,
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
252X509FindType.FindByThumbprint,
Tcp\ClientCredentialTypeTests.OSX.cs (1)
108certificates = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, false);
System (1)
src\libraries\shims\System\ref\System.cs (1)
879[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509FindType))]
System.Net.Security (1)
System\Net\Security\SslStream.Protocol.cs (1)
230X509Certificate2Collection found = certs.Find(X509FindType.FindByThumbprint, certHash, false);
System.Security.Cryptography (17)
System\Security\Cryptography\X509Certificates\FindPal.cs (16)
43X509FindType findType, 53case X509FindType.FindByThumbprint: 59case X509FindType.FindBySubjectName: 65case X509FindType.FindBySubjectDistinguishedName: 71case X509FindType.FindByIssuerName: 77case X509FindType.FindByIssuerDistinguishedName: 83case X509FindType.FindBySerialNumber: 100case X509FindType.FindByTimeValid: 106case X509FindType.FindByTimeNotYetValid: 112case X509FindType.FindByTimeExpired: 118case X509FindType.FindByTemplateName: 124case X509FindType.FindByApplicationPolicy: 130case X509FindType.FindByCertificatePolicy: 136case X509FindType.FindByExtension: 142case X509FindType.FindByKeyUsage: 148case X509FindType.FindBySubjectKeyIdentifier:
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
125public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly)
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
509filtered = extraStore.Find(X509FindType.FindBySerialNumber, issuerSerial.SerialNumber, false); 524filtered = extraStore.Find(X509FindType.FindBySubjectKeyIdentifier, signerIdentifier.Value!, false);
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
35[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509FindType))]
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\Utils.cs (6)
682filters = filters.Find(X509FindType.FindBySubjectDistinguishedName, subjectName, false); 689filters = filters.Find(X509FindType.FindByIssuerDistinguishedName, issuerSerial.IssuerName, false); 690filters = filters.Find(X509FindType.FindBySerialNumber, issuerSerial.SerialNumber, false); 698filters = filters.Find(X509FindType.FindBySubjectKeyIdentifier, hex, false); 705filters = filters.Find(X509FindType.FindByIssuerDistinguishedName, issuerSerial.IssuerName, false); 706filters = filters.Find(X509FindType.FindBySerialNumber, issuerSerial.SerialNumber, false);
System.ServiceModel.Primitives (3)
netstandard.cs (3)
2300public void SetCertificate(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, object findValue) { } 2310public void SetDefaultCertificate(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, object findValue) { } 2312public void SetScopedCertificate(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, object findValue, System.Uri targetService) { }
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);