221 references to StoreLocation
System (21)
net\System\Net\_SecureChannel.cs (3)
391StoreLocation storeLocation = isMachineStore? StoreLocation.LocalMachine: StoreLocation.CurrentUser;
net\System\Net\UnsafeNativeMethods.cs (1)
1700X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
security\system\security\cryptography\x509\x509store.cs (14)
46private StoreLocation m_location; 52public X509Store () : this("MY", StoreLocation.CurrentUser) {} 54public X509Store (string storeName) : this (storeName, StoreLocation.CurrentUser) {} 56public X509Store (StoreName storeName) : this(storeName, StoreLocation.CurrentUser) {} 58public X509Store (StoreLocation storeLocation) : this ("MY", storeLocation) {} 63public X509Store (StoreName storeName, StoreLocation storeLocation) { 64if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine) 102public X509Store (string storeName, StoreLocation storeLocation) { 103if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine) 132public StoreLocation Location { 148if (m_location != StoreLocation.CurrentUser && m_location != StoreLocation.LocalMachine)
security\system\security\cryptography\x509\x509utils.cs (3)
105internal static uint MapX509StoreFlags (StoreLocation storeLocation, OpenFlags flags) { 122if (storeLocation == StoreLocation.LocalMachine) 124else if (storeLocation == StoreLocation.CurrentUser)
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (5)
397StoreLocation storeLocation = StoreLocation.LocalMachine; // Default to Local Machine 413storeLocation = StoreLocation.LocalMachine; 417storeLocation = StoreLocation.CurrentUser; 459private X509Certificate2 GetCertificate(StoreLocation storeLocation, StoreName storeName, string masterKeyPath, string thumbprint, bool isSystemOp)
System.IdentityModel (47)
System\IdentityModel\Configuration\IdentityConfiguration.cs (3)
33public static readonly StoreLocation DefaultTrustedStoreLocation = StoreLocation.LocalMachine; 922public StoreLocation TrustedStoreLocation
System\IdentityModel\Configuration\Properties.cs (3)
161properties.Add(new ConfigurationProperty("trustedStoreLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.IdentityModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None));
System\IdentityModel\Configuration\X509CertificateValidationElement.cs (5)
20const StoreLocation DefaultStoreLocation = StoreLocation.LocalMachine; 48[StandardRuntimeEnumValidator( typeof( StoreLocation ) )] 49public StoreLocation TrustedStoreLocation 51get { return ( StoreLocation ) this[ConfigurationStrings.X509TrustedStoreLocation]; }
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
599public StoreLocation TrustedStoreLocation
System\IdentityModel\Selectors\X509CertificateStore.cs (7)
23StoreLocation storeLocation; 29public X509CertificateStore(StoreName storeName, StoreLocation storeLocation) 63if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine) 354uint MapX509StoreFlags(StoreLocation storeLocation, OpenFlags flags) 373if (storeLocation == StoreLocation.LocalMachine) 375else if (storeLocation == StoreLocation.CurrentUser)
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
124X509CertificateStore store = new X509CertificateStore(storeName, StoreLocation.CurrentUser);
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
24public X509SecurityTokenProvider(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\IdentityModel\Tokens\IssuerTokenResolver.cs (2)
25public static readonly StoreLocation DefaultStoreLocation = StoreLocation.LocalMachine;
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (5)
29static StoreLocation DefaultStoreLocation = StoreLocation.LocalMachine; 64StoreLocation trustedStoreLocation = DefaultStoreLocation; 152trustedStoreLocation = StoreLocation.CurrentUser; 157trustedStoreLocation = StoreLocation.LocalMachine;
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (3)
69public static readonly StoreLocation DefaultTrustedStoreLocation = IdentityConfiguration.DefaultTrustedStoreLocation; 71StoreLocation trustedStoreLocation = DefaultTrustedStoreLocation; 150public StoreLocation TrustedStoreLocation
System\IdentityModel\Tokens\X509CertificateStoreTokenResolver.cs (5)
21private StoreLocation storeLocation; 27: this(System.Security.Cryptography.X509Certificates.StoreName.My, StoreLocation.LocalMachine) 36public X509CertificateStoreTokenResolver(StoreName storeName, StoreLocation storeLocation) 46public X509CertificateStoreTokenResolver(string storeName, StoreLocation storeLocation) 68public StoreLocation StoreLocation
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (5)
33private static StoreLocation defaultStoreLocation = StoreLocation.LocalMachine; 104StoreLocation trustedStoreLocation = defaultStoreLocation; 191trustedStoreLocation = StoreLocation.CurrentUser; 195trustedStoreLocation = StoreLocation.LocalMachine;
System\IdentityModel\X509CertificateValidatorEx.cs (3)
28StoreLocation trustedStoreLocation) 48bool useMachineContext = trustedStoreLocation == StoreLocation.LocalMachine; 58bool useMachineContext = trustedStoreLocation == StoreLocation.LocalMachine;
System\IdentityModel\X509Util.cs (3)
61internal static X509Certificate2 ResolveCertificate(StoreName storeName, StoreLocation storeLocation, X509FindType findType, object findValue) 76internal static bool TryResolveCertificate(StoreName storeName, StoreLocation storeLocation, X509FindType findType, object findValue, out X509Certificate2 certificate) 177StoreLocation trustedStoreLocation)
System.Security (6)
system\security\cryptography\pkcs\envelopedpkcs7.cs (4)
1047X509Store cuMy = new X509Store("MY", StoreLocation.CurrentUser); 1056X509Store lmMy = new X509Store("MY", StoreLocation.LocalMachine); 1085X509Store cuMy = new X509Store("AddressBook", StoreLocation.CurrentUser); 1094X509Store lmMy = new X509Store("AddressBook", StoreLocation.LocalMachine);
system\security\cryptography\xml\utils.cs (2)
882stores[0] = new X509Store(storeName, StoreLocation.CurrentUser); 883stores[1] = new X509Store(storeName, StoreLocation.LocalMachine);
System.ServiceModel (136)
System\ServiceModel\ComIntegration\ChannelCredentials.cs (9)
108StoreLocation location = (StoreLocation)Enum.Parse(typeof(StoreLocation), storeLocation); 132StoreLocation location = (StoreLocation)Enum.Parse(typeof(StoreLocation), storeLocation); 182StoreLocation location = (StoreLocation)Enum.Parse(typeof(StoreLocation), storeLocation);
System\ServiceModel\Configuration\CertificateReferenceElement.cs (3)
31[StandardRuntimeEnumValidator(typeof(StoreLocation))] 32public StoreLocation StoreLocation 34get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (3)
68[StandardRuntimeEnumValidator(typeof(StoreLocation))] 69public StoreLocation TrustedStoreLocation 71get { return (StoreLocation)base[ConfigurationStrings.TrustedStoreLocation]; }
System\ServiceModel\Configuration\Properties.cs (36)
620properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 1491properties.Add(new ConfigurationProperty("trustedStoreLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 3972properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.IsKey)); 4001properties.Add(new ConfigurationProperty("trustedStoreLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4028properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4055properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4082properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4161properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4189properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4218properties.Add(new ConfigurationProperty("trustedStoreLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4449properties.Add(new ConfigurationProperty("storeLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None)); 4478properties.Add(new ConfigurationProperty("trustedStoreLocation", typeof(System.Security.Cryptography.X509Certificates.StoreLocation), System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Security.Cryptography.X509Certificates.StoreLocation)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\X509CertificateTrustedIssuerElement.cs (3)
37[StandardRuntimeEnumValidator(typeof(StoreLocation))] 38public StoreLocation StoreLocation 40get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (3)
54[StandardRuntimeEnumValidator(typeof(StoreLocation))] 55public StoreLocation TrustedStoreLocation 57get { return (StoreLocation)base[ConfigurationStrings.TrustedStoreLocation]; }
System\ServiceModel\Configuration\X509ClientCertificateCredentialsElement.cs (3)
37[StandardRuntimeEnumValidator(typeof(StoreLocation))] 38public StoreLocation StoreLocation 40get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509DefaultServiceCertificateElement.cs (3)
37[StandardRuntimeEnumValidator(typeof(StoreLocation))] 38public StoreLocation StoreLocation 40get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509InitiatorCertificateClientElement.cs (3)
37[StandardRuntimeEnumValidator(typeof(StoreLocation))] 38public StoreLocation StoreLocation 40get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (3)
54[StandardRuntimeEnumValidator(typeof(StoreLocation))] 55public StoreLocation TrustedStoreLocation 57get { return (StoreLocation)base[ConfigurationStrings.TrustedStoreLocation]; }
System\ServiceModel\Configuration\X509PeerCertificateElement.cs (3)
36[StandardRuntimeEnumValidator(typeof(StoreLocation))] 37public StoreLocation StoreLocation 39get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509RecipientCertificateServiceElement.cs (3)
37[StandardRuntimeEnumValidator(typeof(StoreLocation))] 38public StoreLocation StoreLocation 40get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509ScopedServiceCertificateElement.cs (3)
44[StandardRuntimeEnumValidator(typeof(StoreLocation))] 45public StoreLocation StoreLocation 47get { return (StoreLocation)base[ConfigurationStrings.StoreLocation]; }
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (3)
54[StandardRuntimeEnumValidator(typeof(StoreLocation))] 55public StoreLocation TrustedStoreLocation 57get { return (StoreLocation)base[ConfigurationStrings.TrustedStoreLocation]; }
System\ServiceModel\EndpointIdentity.cs (2)
27internal const StoreLocation defaultStoreLocation = StoreLocation.LocalMachine;
System\ServiceModel\Security\IssuedTokenServiceCredential.cs (5)
19internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.LocalMachine; 27StoreLocation trustedStoreLocation = DefaultTrustedStoreLocation; 129public StoreLocation TrustedStoreLocation 188bool useMachineContext = this.trustedStoreLocation == StoreLocation.LocalMachine;
System\ServiceModel\Security\PeerCredential.cs (4)
13internal const StoreLocation DefaultStoreLocation = StoreLocation.CurrentUser; 90public void SetCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName) 99public void SetCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\ServiceModel\Security\SecurityUtils.cs (7)
45internal static bool IsDefined(StoreLocation value) 47return (value == StoreLocation.CurrentUser 48|| value == StoreLocation.LocalMachine); 2139internal static X509Certificate2 GetCertificateFromStore(StoreName storeName, StoreLocation storeLocation, 2149internal static bool TryGetCertificateFromStore(StoreName storeName, StoreLocation storeLocation, 2156static X509Certificate2 GetCertificateFromStoreCore(StoreName storeName, StoreLocation storeLocation, 2190static Exception CreateCertificateLoadException(StoreName storeName, StoreLocation storeLocation,
System\ServiceModel\Security\Tokens\ServiceX509SecurityTokenProvider.cs (1)
17public ServiceX509SecurityTokenProvider(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (4)
12internal const StoreLocation DefaultStoreLocation = StoreLocation.CurrentUser; 43public void SetCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName) 52public void SetCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\ServiceModel\Security\X509CertificateInitiatorServiceCredential.cs (4)
12internal const StoreLocation DefaultStoreLocation = StoreLocation.LocalMachine; 53public void SetCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName) 62public void SetCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
16internal const StoreLocation DefaultStoreLocation = StoreLocation.CurrentUser; 91public void SetDefaultCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName) 100public void SetDefaultCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue) 110public void SetScopedCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName, Uri targetService) 119public void SetScopedCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue, Uri targetService)
System\ServiceModel\Security\X509CertificateRecipientServiceCredential.cs (4)
13internal const StoreLocation DefaultStoreLocation = StoreLocation.LocalMachine; 46public void SetCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName) 55public void SetCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (6)
18internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.LocalMachine; 24StoreLocation trustedStoreLocation = DefaultTrustedStoreLocation; 51bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine; 96public StoreLocation TrustedStoreLocation 168bool useMachineContext = this.trustedStoreLocation == StoreLocation.LocalMachine;
System\ServiceModel\Security\X509PeerCertificateAuthentication.cs (6)
16internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.CurrentUser; 21StoreLocation trustedStoreLocation = DefaultTrustedStoreLocation; 44bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine; 80public StoreLocation TrustedStoreLocation 123bool useMachineContext = this.trustedStoreLocation == StoreLocation.LocalMachine;
System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (6)
17internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.CurrentUser; 24StoreLocation trustedStoreLocation = DefaultTrustedStoreLocation; 47bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine; 89public StoreLocation TrustedStoreLocation 132bool useMachineContext = this.trustedStoreLocation == StoreLocation.LocalMachine;
System.Windows.Forms (2)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (2)
360X509Store store = new X509Store(StoreName.Disallowed, StoreLocation.CurrentUser); 455store = new X509Store(StoreName.TrustedPublisher, StoreLocation.CurrentUser);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
1201X509Store store = new X509Store(StoreLocation.CurrentUser);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
897X509Store store = new X509Store(StoreLocation.CurrentUser);
WsatConfig (2)
Configuration\CertificateManager.cs (2)
158store = new X509Store(StoreName.My, StoreLocation.LocalMachine); 262store = new X509Store(StoreName.My, StoreLocation.LocalMachine);