1 write to factory
System.ServiceModel (1)
System\ServiceModel\Security\MessageSecurityProtocol.cs (1)
27this.factory = factory;
41 references to factory
System.ServiceModel (41)
System\ServiceModel\Security\MessageSecurityProtocol.cs (41)
52if (this.factory.ActAsInitiator 53&& this.factory.SecurityBindingElement.EnableUnsecuredResponse 54&& !this.factory.StandardsManager.SecurityVersion.DoesMessageContainSecurityHeader(message)) 57bool requiresAppSecurity = this.factory.RequireIntegrity || this.factory.RequireConfidentiality || this.factory.DetectReplays; 58return requiresAppSecurity || factory.ExpectSupportingTokens; 66if (!this.factory.ActAsInitiator && this.factory.SecurityBindingElement.EnableUnsecuredResponse) 69bool requiresAppSecurity = this.factory.ApplyIntegrity || this.factory.ApplyConfidentiality || this.factory.AddTimestamp; 70return requiresAppSecurity || factory.ExpectSupportingTokens; 76get { return this.factory; } 205if (this.factory.IdentityVerifier != null) 212this.factory.IdentityVerifier.EnsureIncomingIdentity(this.Target, authContext); 223if (this.factory.IdentityVerifier == null) 232this.factory.IdentityVerifier.EnsureOutgoingIdentity(this.Target, authzPolicies); 247if (securityHeader.MaintainSignatureConfirmationState && !this.factory.ActAsInitiator) 332if (this.factory.ApplyIntegrity) 334securityHeader.SignatureParts = this.factory.GetOutgoingSignatureParts(action); 339securityHeader.EncryptionParts = this.factory.GetOutgoingEncryptionParts(action); 347standardsManager = standardsManager ?? this.factory.StandardsManager; 349this.factory.IncomingAlgorithmSuite, transferDirection); 350securityHeader.Layout = this.factory.SecurityHeaderLayout; 351securityHeader.MaxReceivedMessageSize = factory.SecurityBindingElement.MaxReceivedMessageSize; 352securityHeader.ReaderQuotas = factory.SecurityBindingElement.ReaderQuotas; 353if (this.factory.ExpectKeyDerivation) 355securityHeader.DerivedTokenAuthenticator = this.factory.DerivedKeyTokenAuthenticator; 388supportingAuthenticators = GetSupportingTokenAuthenticatorsAndSetExpectationFlags(this.factory, message, securityHeader); 430securityHeader.ReplayDetectionEnabled = this.factory.DetectReplays; 431securityHeader.SetTimeParameters(this.factory.NonceCache, this.factory.ReplayWindow, this.factory.MaxClockSkew); 433securityHeader.Process(timeoutHelper.RemainingTime(), SecurityUtils.GetChannelBindingFromMessage(message), this.factory.ExtendedProtectionPolicy); 434if (this.factory.AddTimestamp && securityHeader.Timestamp == null) 449if (securityHeader.MaintainSignatureConfirmationState && this.factory.ActAsInitiator) 576if (this.PerformIncomingAndOutgoingMessageExpectationChecks && !this.factory.ExpectOutgoingMessages) 591if (this.PerformIncomingAndOutgoingMessageExpectationChecks && !factory.ExpectIncomingMessages) 627if (this.PerformIncomingAndOutgoingMessageExpectationChecks && !factory.ExpectIncomingMessages) 663if (this.factory.ActAsInitiator)