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