1 write to elementContainer
System.ServiceModel (1)
System\ServiceModel\Security\SendSecurityHeader.cs (1)
66this.elementContainer = new SendSecurityHeaderElementContainer();
85 references to elementContainer
System.ServiceModel (85)
System\ServiceModel\Security\SendSecurityHeader.cs (85)
71get { return this.elementContainer; } 211get { return this.elementContainer.Timestamp; } 237this.elementContainer.PrerequisiteToken = token; 265this.elementContainer.SourceSigningToken = token; 276this.elementContainer.SourceEncryptionToken = token; 290this.elementContainer.AddBasicSupportingToken(tokenElement); 312this.elementContainer.AddEndorsingSupportingToken(token); 335this.elementContainer.AddSignedEndorsingSupportingToken(token); 348this.elementContainer.AddSignedSupportingToken(token); 369if (this.elementContainer.Timestamp != null) 378this.elementContainer.Timestamp = timestamp; 389if (this.elementContainer.SourceEncryptionToken == null) 396SecurityKeyIdentifierClause sourceEncryptingKeyIdentifierClause = this.encryptingTokenParameters.CreateKeyIdentifierClause(this.elementContainer.SourceEncryptionToken, sourceEncryptingKeyReferenceStyle); 405if (!SecurityUtils.HasSymmetricSecurityKey(elementContainer.SourceEncryptionToken)) 413this.AlgorithmSuite.GetKeyWrapAlgorithm(elementContainer.SourceEncryptionToken, out keyWrapAlgorithm, out keyWrapAlgorithmDictionaryString); 415elementContainer.SourceEncryptionToken, new SecurityKeyIdentifier(sourceEncryptingKeyIdentifierClause)); 416elementContainer.WrappedEncryptionToken = wrappedKey; 423sourceToken = elementContainer.SourceEncryptionToken; 438this.encryptingToken = this.elementContainer.DerivedEncryptionToken = derivedEncryptingToken; 469elementContainer.PrimarySignature, 470elementContainer.GetBasicSupportingTokens(), 471elementContainer.GetSignatureConfirmations(), 472elementContainer.GetEndorsingSignatures()); 477this.elementContainer.SourceEncryptionToken = null; 478this.elementContainer.WrappedEncryptionToken = null; 479this.elementContainer.DerivedEncryptionToken = null; 491this.elementContainer.ReferenceList = referenceList; 598if (this.elementContainer.Timestamp != null && this.Layout != SecurityHeaderLayout.LaxTimestampLast) 600this.StandardsManager.WSUtilitySpecificationVersion.WriteTimestamp(writer, this.elementContainer.Timestamp); 602if (elementContainer.PrerequisiteToken != null) 604this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.PrerequisiteToken); 606if (elementContainer.SourceSigningToken != null) 610this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.SourceSigningToken); 621this.WriteSecurityTokenReferencyEntry(writer, elementContainer.SourceSigningToken, this.signingTokenParameters); 625if (elementContainer.DerivedSigningToken != null) 627this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.DerivedSigningToken); 629if (elementContainer.SourceEncryptionToken != null && elementContainer.SourceEncryptionToken != elementContainer.SourceSigningToken && ShouldSerializeToken(encryptingTokenParameters, this.MessageDirection)) 631this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.SourceEncryptionToken); 633if (elementContainer.WrappedEncryptionToken != null) 635this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.WrappedEncryptionToken); 637if (elementContainer.DerivedEncryptionToken != null) 639this.StandardsManager.SecurityTokenSerializer.WriteToken(writer, elementContainer.DerivedEncryptionToken); 643if (elementContainer.ReferenceList != null) 645elementContainer.ReferenceList.WriteTo(writer, ServiceModelDictionaryManager.Instance); 649SecurityToken[] signedTokens = elementContainer.GetSignedSupportingTokens(); 658SendSecurityHeaderElement[] basicTokensXml = elementContainer.GetBasicSupportingTokens(); 670SecurityToken[] endorsingTokens = elementContainer.GetEndorsingSupportingTokens(); 681SecurityToken[] endorsingDerivedTokens = elementContainer.GetEndorsingDerivedSupportingTokens(); 689SecurityToken[] signedEndorsingTokens = elementContainer.GetSignedEndorsingSupportingTokens(); 698SecurityToken[] signedEndorsingDerivedTokens = elementContainer.GetSignedEndorsingDerivedSupportingTokens(); 706SendSecurityHeaderElement[] signatureConfirmations = elementContainer.GetSignatureConfirmations(); 714if (elementContainer.PrimarySignature != null && elementContainer.PrimarySignature.Item != null) 716elementContainer.PrimarySignature.Item.WriteTo(writer, ServiceModelDictionaryManager.Instance); 718SendSecurityHeaderElement[] endorsingSignatures = elementContainer.GetEndorsingSignatures(); 728if (elementContainer.ReferenceList != null) 730elementContainer.ReferenceList.WriteTo(writer, ServiceModelDictionaryManager.Instance); 733if (this.elementContainer.Timestamp != null && this.Layout == SecurityHeaderLayout.LaxTimestampLast) 735this.StandardsManager.WSUtilitySpecificationVersion.WriteTimestamp(writer, this.elementContainer.Timestamp); 747if (this.elementContainer.SourceSigningToken != null) 757if (this.elementContainer.SourceEncryptionToken != null) 778if (this.elementContainer.SourceSigningToken == null) 785SecurityKeyIdentifierClause sourceSigningKeyIdentifierClause = this.signingTokenParameters.CreateKeyIdentifierClause(this.elementContainer.SourceSigningToken, sourceSigningKeyReferenceStyle); 797string derivationAlgorithm = this.AlgorithmSuite.GetSignatureKeyDerivationAlgorithm(this.elementContainer.SourceSigningToken, this.StandardsManager.MessageSecurityVersion.SecureConversationVersion); 801DerivedKeySecurityToken derivedSigningToken = new DerivedKeySecurityToken(-1, 0, this.AlgorithmSuite.GetSignatureKeyDerivationLength(this.elementContainer.SourceSigningToken, this.StandardsManager.MessageSecurityVersion.SecureConversationVersion), null, DerivedKeySecurityToken.DefaultNonceLength, this.elementContainer.SourceSigningToken, 803signingToken = this.elementContainer.DerivedSigningToken = derivedSigningToken; 813signingToken = elementContainer.SourceSigningToken; 827this.elementContainer.AddSignatureConfirmation(sigConfElement); 838elementContainer.GetSignatureConfirmations(), elementContainer.GetSignedEndorsingSupportingTokens(), 839elementContainer.GetSignedSupportingTokens(), elementContainer.GetBasicSupportingTokens(), true); 844this.elementContainer.PrimarySignature = new SendSecurityHeaderElement(signedXml.Id, signedXml); 845this.elementContainer.PrimarySignature.MarkedForEncryption = this.encryptSignature; 878if (this.elementContainer.Timestamp == null) 891if (this.elementContainer.PrimarySignature.Item == null) 906supportingSignature = CreateSupportingSignature(token, identifier, elementContainer.PrimarySignature.Item); 911this.elementContainer.AddEndorsingSignature(supportingSignatureElement); 916SecurityToken[] endorsingTokens = this.elementContainer.GetEndorsingSupportingTokens(); 937this.elementContainer.AddEndorsingDerivedSupportingToken(dkt); 947SecurityToken[] signedEndorsingSupportingTokens = this.elementContainer.GetSignedEndorsingSupportingTokens(); 968this.elementContainer.AddSignedEndorsingDerivedSupportingToken(dkt);