39 references to Factory
System.ServiceModel (39)
System\ServiceModel\Security\AsymmetricSecurityProtocol.cs (39)
71if (this.Factory.ActAsInitiator) 73if (this.Factory.ApplyIntegrity) 76this.Factory.CryptoTokenParameters.InitializeSecurityTokenRequirement(requirement); 79this.initiatorCryptoTokenProvider = this.Factory.SecurityTokenManager.CreateSecurityTokenProvider(requirement); 82if (this.Factory.RequireIntegrity || this.Factory.ApplyConfidentiality) 85this.Factory.AsymmetricTokenParameters.InitializeSecurityTokenRequirement(providerRequirement); 87providerRequirement.Properties[ServiceModelSecurityTokenRequirement.MessageDirectionProperty] = (this.Factory.ApplyConfidentiality) ? MessageDirection.Output : MessageDirection.Input; 88this.initiatorAsymmetricTokenProvider = this.Factory.SecurityTokenManager.CreateSecurityTokenProvider(providerRequirement); 92this.Factory.AsymmetricTokenParameters.InitializeSecurityTokenRequirement(authenticatorRequirement); 93authenticatorRequirement.IsOutOfBandToken = !this.Factory.AllowSerializedSigningTokenOnReply; 95authenticatorRequirement.Properties[ServiceModelSecurityTokenRequirement.MessageDirectionProperty] = (this.Factory.ApplyConfidentiality) ? MessageDirection.Output : MessageDirection.Input; 98this.initiatorAsymmetricTokenAuthenticator = this.Factory.SecurityTokenManager.CreateSecurityTokenAuthenticator(authenticatorRequirement, out outOfBandTokenResolver); 106if (this.Factory.ActAsInitiator) 127if (this.Factory.ActAsInitiator) 159if (this.Factory.ActAsInitiator == false) 164AsymmetricSecurityProtocolFactory factory = this.Factory; 198AsymmetricSecurityProtocolFactory factory = this.Factory; 201SecurityTokenParameters signingTokenParameters = (this.Factory.ActAsInitiator) ? this.Factory.CryptoTokenParameters : this.Factory.AsymmetricTokenParameters; 202SecurityTokenParameters encryptionTokenParameters = (this.Factory.ActAsInitiator) ? this.Factory.AsymmetricTokenParameters : this.Factory.CryptoTokenParameters; 203if (this.Factory.ApplyIntegrity || securityHeader.HasSignedTokens) 205if (!this.Factory.ApplyIntegrity) 211if (Factory.ApplyConfidentiality || securityHeader.HasEncryptedTokens) 213if (!this.Factory.ApplyConfidentiality) 243AsymmetricSecurityProtocolFactory factory = this.Factory; 262securityHeader.WrappedKeySecurityTokenAuthenticator = this.Factory.WrappedKeySecurityTokenAuthenticator; 283if (this.Factory.RecipientAsymmetricTokenProvider != null && this.Factory.RequireConfidentiality) 291securityHeader.ConfigureAsymmetricBindingServerReceiveHeader(this.Factory.RecipientCryptoTokenAuthenticator, 292this.Factory.CryptoTokenParameters, wrappingToken, this.Factory.AsymmetricTokenParameters, supportingAuthenticators); 293securityHeader.WrappedKeySecurityTokenAuthenticator = this.Factory.WrappedKeySecurityTokenAuthenticator; 295securityHeader.ConfigureOutOfBandTokenResolver(MergeOutOfBandResolvers(supportingAuthenticators, this.Factory.RecipientOutOfBandTokenResolverList)); 323AsymmetricSecurityProtocolFactory factory = this.Factory; 331if (!isBlockingCall || !TryGetSupportingTokens(this.Factory, this.Target, this.Via, message, timeoutHelper.RemainingTime(), isBlockingCall, out supportingTokens))