76 references to SecurityUtils
dotnet-svcutil-lib (76)
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (2)
53
System.ServiceModel.Security.
SecurityUtils
.ResetAllCertificates(certificates);
70
System.ServiceModel.Security.
SecurityUtils
.ResetCertificate(_certificate);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
24
using SecurityUtils = System.ServiceModel.Security.
SecurityUtils
;
530
return
SecurityUtils
.AppendWindowsAuthenticationInfo(inputString, credential, authenticationLevel, impersonationLevel);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (4)
129
SecurityUtils
.OpenTokenProviderIfRequired(certificateProvider, timeout);
155
SecurityUtils
.AbortTokenProviderIfRequired(requestCertificateProvider);
266
SecurityUtils
.CloseTokenProviderIfRequired(_certificateProvider, timeout);
274
SecurityUtils
.AbortTokenProviderIfRequired(_certificateProvider);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (11)
233
SecurityUtils
.AbortTokenAuthenticatorIfRequired(_clientCertificateAuthenticator);
242
SecurityUtils
.CloseTokenAuthenticatorIfRequired(_clientCertificateAuthenticator, timeout);
262
SecurityUtils
.AbortTokenProviderIfRequired(_serverTokenProvider);
283
SecurityUtils
.OpenTokenAuthenticatorIfRequired(this.ClientCertificateAuthenticator, timeoutHelper.RemainingTime());
287
SecurityUtils
.OpenTokenProviderIfRequired(_serverTokenProvider, timeoutHelper.RemainingTime());
290
SecurityUtils
.CloseTokenProviderIfRequired(_serverTokenProvider, timeoutHelper.RemainingTime());
429
ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies =
SecurityUtils
.NonValidatingX509Authenticator.ValidateToken(token);
524
SecurityUtils
.OpenTokenProviderIfRequired(_clientCertificateProvider, timeoutHelper.RemainingTime());
538
SecurityUtils
.OpenTokenProviderIfRequired(_clientCertificateProvider, timeoutHelper.RemainingTime());
552
SecurityUtils
.CloseTokenProviderIfRequired(_clientCertificateProvider, timeoutHelper.RemainingTime());
562
SecurityUtils
.CloseTokenProviderIfRequired(_clientCertificateProvider, timeoutHelper.RemainingTime());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (4)
60
SecurityUtils
.OpenTokenProviderIfRequired(tokenProvider, timeoutHelper.RemainingTime());
76
SecurityUtils
.AbortTokenProviderIfRequired(tokenProvider);
79
SecurityUtils
.CloseTokenProviderIfRequired(tokenProvider, timeoutHelper.RemainingTime());
109
SecurityUtils
.FixNetworkCredential(ref credential);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (3)
83
_identity =
SecurityUtils
.CreateWindowsIdentity(_serverCredential);
298
SecurityUtils
.OpenTokenProviderIfRequired(_clientTokenProvider, timeoutHelper.RemainingTime());
320
SecurityUtils
.CloseTokenProviderIfRequired(_clientTokenProvider, timeoutHelper.RemainingTime());
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (4)
56
return
SecurityUtils
.GetSpnFromIdentity(identity, targetAddress);
140
new KerberosSecurityTokenProvider(spn, _parent.Windows.AllowedImpersonationLevel,
SecurityUtils
.GetNetworkCredentialOrDefault(_parent.Windows.ClientCredential)));
154
result = new SspiSecurityTokenProvider(
SecurityUtils
.GetNetworkCredentialOrDefault(_parent.HttpDigest.ClientCredential), true, TokenImpersonationLevel.Delegation);
159
result = new SspiSecurityTokenProvider(
SecurityUtils
.GetNetworkCredentialOrDefault(_parent.Windows.ClientCredential),
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\EncryptedData.cs (1)
56
_cipherText =
SecurityUtils
.ReadContentAsBase64(reader, maxBufferSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\HttpDigestClientCredential.cs (1)
22
_digestCredentials =
SecurityUtils
.GetNetworkCredentialsCopy(other._digestCredentials);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (3)
49
: this(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer))
63
: this(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer),
528
return CreateFrom(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer), reader);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (5)
50
: this(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer))
91
: this(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer),
114
_effectiveTime =
SecurityUtils
.MinUtcDateTime;
115
_expirationTime =
SecurityUtils
.MaxUtcDateTime;
538
return CreateFrom(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer), reader);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAlgorithmSuite.cs (9)
250
string derivationAlgorithm =
SecurityUtils
.GetKeyDerivationAlgorithm(version);
251
if (
SecurityUtils
.IsSupportedAlgorithm(derivationAlgorithm, token))
262
string derivationAlgorithm =
SecurityUtils
.GetKeyDerivationAlgorithm(version);
263
if (
SecurityUtils
.IsSupportedAlgorithm(derivationAlgorithm, token))
279
if (
SecurityUtils
.IsSupportedAlgorithm(this.DefaultSymmetricKeyWrapAlgorithm, token))
325
string derivationAlgorithm =
SecurityUtils
.GetKeyDerivationAlgorithm(version);
326
if (
SecurityUtils
.IsSupportedAlgorithm(derivationAlgorithm, token))
337
string derivationAlgorithm =
SecurityUtils
.GetKeyDerivationAlgorithm(version);
338
if (
SecurityUtils
.IsSupportedAlgorithm(derivationAlgorithm, token))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (8)
655
SecurityUtils
.AbortTokenAuthenticatorIfRequired(spec.TokenAuthenticator);
662
SecurityUtils
.AbortTokenAuthenticatorIfRequired(spec.TokenAuthenticator);
675
SecurityUtils
.CloseTokenAuthenticatorIfRequired(spec.TokenAuthenticator, timeoutHelper.RemainingTime());
682
SecurityUtils
.CloseTokenAuthenticatorIfRequired(spec.TokenAuthenticator, timeoutHelper.RemainingTime());
818
SecurityUtils
.OpenTokenAuthenticatorIfRequired(spec.TokenAuthenticator, timeoutHelper.RemainingTime());
982
SecurityUtils
.OpenTokenAuthenticatorIfRequired(tokenAuthenticatorSpec.TokenAuthenticator, timeoutHelper.RemainingTime());
1080
SecurityUtils
.OpenTokenAuthenticatorIfRequired(authenticator, timeout);
1092
SecurityUtils
.OpenTokenProviderIfRequired(provider, timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
530
policies.Add(new UnconditionalPolicy(
SecurityUtils
.CreateIdentity(principalName), new DefaultClaimSet(ClaimSet.Anonymous, claims)));
575
if (authContext.Properties.TryGetValue(
SecurityUtils
.Identities, out obj))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (2)
121
return
SecurityUtils
.CloneBuffer(_key);
126
return
SecurityUtils
.CloneBuffer(_nonce);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
305
return CreateRequestParameters(
SecurityUtils
.CreateSecurityStandardsManager(messageSecurityVersion, securityTokenSerializer).TrustDriver);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
34
: this(contextId,
SecurityUtils
.GenerateId(), key, validFrom, validTo)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenProviderContainer.cs (3)
31
SecurityUtils
.CloseTokenProviderIfRequired(_tokenProvider, timeout);
37
SecurityUtils
.OpenTokenProviderIfRequired(_tokenProvider, timeout);
43
SecurityUtils
.AbortTokenProviderIfRequired(_tokenProvider);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SspiSecurityToken.cs (2)
27
_networkCredential =
SecurityUtils
.GetNetworkCredentialsCopy(networkCredential);
34
_networkCredential =
SecurityUtils
.GetNetworkCredentialsCopy(networkCredential);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (1)
25
_windowsCredentials =
SecurityUtils
.GetNetworkCredentialsCopy(other._windowsCredentials);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (1)
486
if (!
SecurityUtils
.TryCreateX509CertificateFromRawData(rawData, out certificate))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (1)
58
_certificate =
SecurityUtils
.GetCertificateFromStore(storeName, storeLocation, findType, findValue, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
104
_defaultCertificate =
SecurityUtils
.GetCertificateFromStore(storeName, storeLocation, findType, findValue, null);
127
X509Certificate2 certificate =
SecurityUtils
.GetCertificateFromStore(storeName, storeLocation, findType, findValue, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceSecurityContext.cs (3)
79
_identityClaim =
SecurityUtils
.GetPrimaryIdentityClaim(this.AuthorizationContext);
99
_primaryIdentity = primaryIdentity ??
SecurityUtils
.AnonymousIdentity;
133
if (authContext != null && authContext.Properties.TryGetValue(
SecurityUtils
.Identities, out identities))