46 instantiations of X509Certificate2Collection
dotnet-svcutil-lib (2)
CmdCredentialsProvider.cs (1)
75X509Certificate2Collection certs = new X509Certificate2Collection();
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (1)
17private X509Certificate2Collection _certificateCollection = new X509Certificate2Collection();
HttpClientApp (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
129X509Certificate2Collection chain = new X509Certificate2Collection();
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Interop.FunctionalTests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationOptions.cs (2)
24public X509Certificate2Collection CustomTrustStore { get; set; } = new X509Certificate2Collection(); 29public X509Certificate2Collection AdditionalChainCertificates { get; set; } = new X509Certificate2Collection();
Microsoft.AspNetCore.Authentication.Test (5)
CertificateTests.cs (5)
320CustomTrustStore = new X509Certificate2Collection() { Certificates.SignedSecondaryRoot }, 337CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, Certificates.SignedSecondaryRoot }, 355CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, }, 356AdditionalChainCertificates = new X509Certificate2Collection() { Certificates.SignedSecondaryRoot }, 373CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Certificates\CertificateConfigLoader.cs (1)
40var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
129X509Certificate2Collection chain = new X509Certificate2Collection();
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Microsoft.Build.Tasks.Core (1)
ManifestUtil\mansign2.cs (1)
1123_certificates = new X509Certificate2Collection();
Sockets.BindTests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
Sockets.FunctionalTests (1)
src\Shared\TestResources.cs (1)
68var fullChain = new X509Certificate2Collection();
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (1)
23var certs = new X509Certificate2Collection();
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
258X509Certificate2Collection collection = new X509Certificate2Collection();
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
209X509Certificate2Collection additionalCertificates = new X509Certificate2Collection();
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
302handler.SslOptions.ClientCertificates = new X509Certificate2Collection();
System.Security.Cryptography (7)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
119return new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
47X509Certificate2Collection results = new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (1)
98X509Certificate2Collection coll = new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
119_chainPolicy._customTrustStore = new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs (2)
49public X509Certificate2Collection ExtraStore => _extraStore ??= new X509Certificate2Collection(); 51public X509Certificate2Collection CustomTrustStore => _customTrustStore ??= new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
115X509Certificate2Collection certificates = new X509Certificate2Collection();
System.Security.Cryptography.Pkcs (11)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
40originatorCerts = new X509Certificate2Collection();
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
25public X509Certificate2Collection Certificates { get; } = new X509Certificate2Collection(); 327X509Certificate2Collection certs = new X509Certificate2Collection();
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (4)
42Certificates = new X509Certificate2Collection(); 231X509Certificate2Collection extraStore = new X509Certificate2Collection(); 249extraStore ??= new X509Certificate2Collection(); 251X509Certificate2Collection certs = new X509Certificate2Collection();
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
285signer.CheckSignature(new X509Certificate2Collection(tsaCertificate), true);
System\Security\Cryptography\Pkcs\SignedCms.cs (2)
80var coll = new X509Certificate2Collection(); 609CheckSignature(new X509Certificate2Collection(), verifySignatureOnly);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
435CheckSignature(new X509Certificate2Collection(), verifySignatureOnly);
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (1)
525X509Certificate2Collection collection = new X509Certificate2Collection();
System\Security\Cryptography\Xml\Utils.cs (1)
638X509Certificate2Collection collection = new X509Certificate2Collection();
213 references to X509Certificate2Collection
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
200var certificates = store.Certificates.Find(X509FindType.FindBySubjectName, findValue: subject, validOnly: true);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
56var certificates = store.Certificates;
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
dotnet-svcutil-lib (13)
CmdCredentialsProvider.cs (5)
58private X509Certificate2Collection _certificates; 59private X509Certificate2Collection Certificates 73public X509Certificate2Collection GetCertificates() 75X509Certificate2Collection certs = new X509Certificate2Collection(); 141private X509Certificate2 SelectCertificateFromCollection(X509Certificate2Collection selectedCerts, Uri serviceUri)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
374internal static void ResetAllCertificates(X509Certificate2Collection certificates)
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
35X509Certificate2Collection certificates = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceModelHttpMessageHandler.CoreClr.cs (1)
67public X509Certificate2Collection ClientCertificates
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
908X509Certificate2Collection certs = null; 995internal static void ResetAllCertificates(X509Certificate2Collection certificates)
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (3)
17private X509Certificate2Collection _certificateCollection = new X509Certificate2Collection(); 29public X509CertificateEndpointIdentity(X509Certificate2 primaryCertificate, X509Certificate2Collection supportingCertificates) 76public X509Certificate2Collection Certificates
HttpClientApp (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Infrastructure.Common (1)
CertificateManager.cs (1)
170X509Certificate2Collection foundCertificates = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly);
InMemory.FunctionalTests (5)
HttpsConnectionMiddlewareTests.cs (1)
808(var clientCertificate, var clientChain) = CertHelper.GenerateCertificates(nameof(ServerCertificateChainInExtraStore), longChain: true, serverCertificate: false);
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
121internal static (X509Certificate2 certificate, X509Certificate2Collection) GenerateCertificates(string targetName, [CallerMemberName] string? testName = null, bool longChain = false, bool serverCertificate = true) 129X509Certificate2Collection chain = new X509Certificate2Collection();
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Interop.FunctionalTests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationOptions.cs (2)
24public X509Certificate2Collection CustomTrustStore { get; set; } = new X509Certificate2Collection(); 29public X509Certificate2Collection AdditionalChainCertificates { get; set; } = new X509Certificate2Collection();
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
41var matchingCerts = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly: true);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
116var certificates = store.Certificates;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Core (9)
CertificateLoader.cs (2)
35X509Certificate2Collection? storeCertificates = null; 112private static void DisposeCertificates(X509Certificate2Collection? certificates, X509Certificate2? except)
HttpsConnectionAdapterOptions.cs (1)
45public X509Certificate2Collection? ServerCertificateChain { get; set; }
Internal\Certificates\CertificateConfigLoader.cs (2)
26public (X509Certificate2?, X509Certificate2Collection?) LoadCertificate(CertificateConfig? certInfo, string endpointName) 40var fullChain = new X509Certificate2Collection();
Internal\Certificates\ICertificateConfigLoader.cs (1)
12(X509Certificate2?, X509Certificate2Collection?) LoadCertificate(CertificateConfig? certInfo, string endpointName);
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.AspNetCore.Server.Kestrel.Core.Tests (9)
SniOptionsSelectorTests.cs (5)
240var fullChain = fullChainDictionary[aSubdomainOptions.ServerCertificate]; 916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance); 920public (X509Certificate2, X509Certificate2Collection) LoadCertificate(CertificateConfig certInfo, string endpointName) 930var fullChain = TestResources.GetTestChain();
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
121internal static (X509Certificate2 certificate, X509Certificate2Collection) GenerateCertificates(string targetName, [CallerMemberName] string? testName = null, bool longChain = false, bool serverCertificate = true) 129X509Certificate2Collection chain = new X509Certificate2Collection();
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Microsoft.Build.Tasks.Core (5)
ManifestUtil\mansign2.cs (2)
1096private X509Certificate2Collection _certificates; 1177internal X509Certificate2Collection ExtraStore
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 (2)
Verification\XmlVerifier.cs (2)
88X509Certificate2Collection rootCertificates = rootStore.Certificates; 89X509Certificate2Collection matchingRootCertificates = rootCertificates.Find(X509FindType.FindBySubjectDistinguishedName,
netstandard (1)
netstandard.cs (1)
1956[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate2Collection))]
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (2)
918X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
105X509Certificate2Collection certificates = null; 168internal static void ResetAllCertificates(X509Certificate2Collection certificates)
Sockets.BindTests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
Sockets.FunctionalTests (2)
src\Shared\TestResources.cs (2)
57public static X509Certificate2Collection GetTestChain(string certName = "leaf.com.crt") 68var fullChain = new X509Certificate2Collection();
System (1)
src\libraries\shims\System\ref\System.cs (1)
865[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate2Collection))]
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
30public System.Security.Cryptography.X509Certificates.X509Certificate2Collection Certificates { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } }
System.Net.Http (3)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (2)
23var certs = new X509Certificate2Collection(); 29internal static X509Certificate2? GetEligibleClientCertificate(X509Certificate2Collection? candidateCerts)
src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
13X509Certificate2Collection candidateCerts;
System.Net.Http.WinHttpHandler (1)
artifacts\obj\System.Net.Http.WinHttpHandler\Debug\net10.0\System.Net.Http.WinHttpHandler.notsupported.cs (1)
29public System.Security.Cryptography.X509Certificates.X509Certificate2Collection ClientCertificates { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_WinHttpHandler); } }
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
258X509Certificate2Collection collection = new X509Certificate2Collection();
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
209X509Certificate2Collection additionalCertificates = new X509Certificate2Collection();
System.Net.Security (8)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
459X509Certificate2Collection certList = (trust._trustList ?? trust._store!.Certificates);
System\Net\Security\SslCertificateTrust.cs (2)
12internal X509Certificate2Collection? _trustList; 42public static SslCertificateTrust CreateForX509Collection(X509Certificate2Collection trustList, bool sendTrustInHandshake = false)
System\Net\Security\SslStream.Protocol.cs (2)
229X509Certificate2Collection certs = store.Certificates; 230X509Certificate2Collection found = certs.Find(X509FindType.FindByThumbprint, certHash, false);
System\Net\Security\SslStreamCertificateContext.cs (3)
25public static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection? additionalCertificates, bool offline) 30public static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection? additionalCertificates, bool offline = false, SslCertificateTrust? trust = null) 37X509Certificate2Collection? additionalCertificates,
System.Security.Cryptography (67)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (4)
369public static X509Certificate2Collection LoadPkcs12Collection( 417public static X509Certificate2Collection LoadPkcs12Collection( 480public static X509Certificate2Collection LoadPkcs12CollectionFromFile( 532public static X509Certificate2Collection LoadPkcs12CollectionFromFile(
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (4)
44ref X509Certificate2Collection? earlyReturn); 51private static partial X509Certificate2Collection LoadPkcs12Collection( 94private static X509Certificate2Collection LoadPkcs12Collection( 102X509Certificate2Collection? earlyReturn = null;
System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs (1)
26public void MoveTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\ChainPal.cs (2)
15X509Certificate2Collection? extraStore, 20X509Certificate2Collection? customTrustStore,
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (4)
33X509Certificate2Collection? extraStore, 38X509Certificate2Collection? customTrustStore, 77X509Certificate2Collection? extraStore, 82X509Certificate2Collection? customTrustStore,
System\Security\Cryptography\X509Certificates\FindPal.cs (5)
37X509Certificate2Collection findFrom, 38X509Certificate2Collection copyTo, 41public static X509Certificate2Collection FindFromCollection( 42X509Certificate2Collection coll, 47X509Certificate2Collection results = new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\FindPal.OpenSsl.cs (2)
14X509Certificate2Collection findFrom, 15X509Certificate2Collection copyTo,
System\Security\Cryptography\X509Certificates\ILoaderPal.cs (1)
8void MoveTo(X509Certificate2Collection collection);
System\Security\Cryptography\X509Certificates\IStorePal.cs (1)
10void CloneTo(X509Certificate2Collection collection);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (5)
15private readonly X509Certificate2Collection _findFrom; 16private readonly X509Certificate2Collection _copyTo; 19internal ManagedCertificateFinder(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly) 338X509Certificate2Collection findFrom = _findFrom;
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (1)
52public void CloneTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\OpenSslCertificateFinder.cs (2)
8internal OpenSslCertificateFinder(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly)
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
73public void CloneTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
16internal OpenSslExportProvider(X509Certificate2Collection certs)
System\Security\Cryptography\X509Certificates\OpenSslSingleCertLoader.cs (1)
24public void MoveTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (3)
96X509Certificate2Collection? customTrustStore, 146X509Certificate2Collection? customTrustStore, 174internal Interop.Crypto.X509VerifyStatusCode FindFirstChain(X509Certificate2Collection? extraCerts)
System\Security\Cryptography\X509Certificates\StorePal.cs (5)
26X509Certificate2Collection certificates); 35private X509Certificate2Collection? _coll; 37internal CollectionBasedLoader(X509Certificate2Collection coll) 44X509Certificate2Collection? coll = _coll; 56public void MoveTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (1)
136internal static partial IExportPal LinkFromCertificateCollection(X509Certificate2Collection certificates)
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
24protected X509Certificate2Collection? _certs; 31internal UnixExportProvider(X509Certificate2Collection certs)
System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs (1)
33public void CloneTo(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (9)
31public X509Certificate2Collection(X509Certificate2Collection certificates) 77public void AddRange(X509Certificate2Collection certificates) 125public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly) 299public void RemoveRange(X509Certificate2Collection certificates) 622public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, string thumbprintHex) 659public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> thumbprintHex) 709public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes) 715private X509Certificate2Collection FindByThumbprintCore(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes) 720X509Certificate2Collection results = [];
System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs (1)
14internal X509Certificate2Enumerator(X509Certificate2Collection collection)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
77private static partial X509Certificate2Collection LoadPkcs12Collection( 98X509Certificate2Collection coll = new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs (4)
15internal X509Certificate2Collection? _extraStore; 16internal X509Certificate2Collection? _customTrustStore; 49public X509Certificate2Collection ExtraStore => _extraStore ??= new X509Certificate2Collection(); 51public X509Certificate2Collection CustomTrustStore => _customTrustStore ??= new X509Certificate2Collection();
System\Security\Cryptography\X509Certificates\X509Store.cs (4)
111public X509Certificate2Collection Certificates 115X509Certificate2Collection certificates = new X509Certificate2Collection(); 139public void AddRange(X509Certificate2Collection certificates) 177public void RemoveRange(X509Certificate2Collection certificates)
System.Security.Cryptography.Pkcs (42)
Internal\Cryptography\DecryptorPal.cs (2)
37X509Certificate2Collection originatorCerts, 38X509Certificate2Collection extraStore,
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
18public override void AddCertsFromStoreForDecryption(X509Certificate2Collection certs)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
24out X509Certificate2Collection originatorCerts,
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (2)
36X509Certificate2Collection originatorCerts, 37X509Certificate2Collection extraStore,
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
22X509Certificate2Collection originatorCerts, 57X509Certificate2Collection originatorCerts,
Internal\Cryptography\PkcsHelpers.cs (3)
263public static X509Certificate2Collection GetStoreCertificates(StoreName storeName, StoreLocation storeLocation, bool openExistingOnly) 272X509Certificate2Collection certificates = store.Certificates; 280public static X509Certificate2? TryFindMatchingCertificate(this X509Certificate2Collection certs, SubjectIdentifier recipientIdentifier)
Internal\Cryptography\PkcsPal.cs (3)
27public abstract byte[] Encrypt(CmsRecipientCollection recipients, ContentInfo contentInfo, AlgorithmIdentifier contentEncryptionAlgorithm, X509Certificate2Collection originatorCerts, CryptographicAttributeObjectCollection unprotectedAttributes); 34public abstract DecryptorPal Decode(ReadOnlySpan<byte> encodedMessage, out int version, out ContentInfo contentInfo, out AlgorithmIdentifier contentEncryptionAlgorithm, out X509Certificate2Collection originatorCerts, out CryptographicAttributeObjectCollection unprotectedAttributes); 45public abstract void AddCertsFromStoreForDecryption(X509Certificate2Collection certs);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
25public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificate2Collection certificates)
System\Security\Cryptography\Pkcs\CmsSigner.cs (3)
25public X509Certificate2Collection Certificates { get; } = new X509Certificate2Collection(); 181out X509Certificate2Collection chainCerts) 327X509Certificate2Collection certs = new X509Certificate2Collection();
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (8)
57public X509Certificate2Collection Certificates { get; private set; } 165X509Certificate2Collection originatorCerts; 198public void Decrypt(RecipientInfo recipientInfo, X509Certificate2Collection extraStore) 212public void Decrypt(X509Certificate2Collection extraStore) 231X509Certificate2Collection extraStore = new X509Certificate2Collection(); 246private void DecryptContent(RecipientInfoCollection recipientInfos, X509Certificate2Collection? extraStore) 251X509Certificate2Collection certs = new X509Certificate2Collection(); 255X509Certificate2Collection originatorCerts = Certificates;
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (5)
42private X509Certificate2? GetSignerCertificate(X509Certificate2Collection? extraCandidates) 77X509Certificate2Collection? extraCandidates = null) 101X509Certificate2Collection? extraCandidates = null) 125X509Certificate2Collection? extraCandidates = null) 157X509Certificate2Collection? extraCandidates = null)
System\Security\Cryptography\Pkcs\SignedCms.cs (6)
76public X509Certificate2Collection Certificates 80var coll = new X509Certificate2Collection(); 348X509Certificate2Collection chainCerts; 560internal void UpdateCertificatesFromAddition(X509Certificate2Collection newCerts) 611public void CheckSignature(X509Certificate2Collection extraStore, bool verifySignatureOnly) 623X509Certificate2Collection extraStore,
System\Security\Cryptography\Pkcs\SignerInfo.cs (5)
292X509Certificate2Collection chain; 437public void CheckSignature(X509Certificate2Collection extraStore, bool verifySignatureOnly) 494X509Certificate2Collection? extraStore) 501X509Certificate2Collection? filtered = null; 683X509Certificate2Collection extraStore,
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
19[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Certificate2Collection))]
System.Security.Cryptography.Xml (7)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
444X509Certificate2Collection collection = Utils.BuildBagOfCerts(kiX509Data, CertUsageType.Decryption);
System\Security\Cryptography\Xml\SignedXml.cs (3)
23private X509Certificate2Collection? _x509Collection; 523private X509Certificate2Collection BuildBagOfCerts() 525X509Certificate2Collection collection = new X509Certificate2Collection();
System\Security\Cryptography\Xml\Utils.cs (3)
636internal static X509Certificate2Collection BuildBagOfCerts(KeyInfoX509Data keyInfoX509Data, CertUsageType certUsageType) 638X509Certificate2Collection collection = new X509Certificate2Collection(); 671X509Certificate2Collection? filters = null;
System.Windows.Extensions (4)
artifacts\obj\System.Windows.Extensions\Debug\net10.0\System.Windows.Extensions.notsupported.cs (4)
60public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection SelectFromCollection(System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates, string? title, string? message, System.Security.Cryptography.X509Certificates.X509SelectionFlag selectionFlag) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } 61public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection SelectFromCollection(System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates, string? title, string? message, System.Security.Cryptography.X509Certificates.X509SelectionFlag selectionFlag, System.IntPtr hwndParent) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); }
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);