2 writes to Message
System.ServiceModel (2)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
744
this.
Message
= this.securityVerifiedMessage = new SecurityVerifiedMessage(this.Message, this);
System\ServiceModel\Security\SendSecurityHeader.cs (1)
767
this.
Message
= message;
60 references to Message
System.ServiceModel (60)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (26)
391
get { return this.
Message
; }
402
throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.
Message
);
407
SR.GetString(SR.MessagePartSpecificationMustBeImmutable)), this.
Message
);
421
throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.
Message
);
426
SR.GetString(SR.MessagePartSpecificationMustBeImmutable)), this.
Message
);
588
MessageHeaderInfo header = this.
Message
.Headers[this.headerIndex];
590
Message
.Headers.UnderstoodHeaders.Add(header);
744
this.Message = this.securityVerifiedMessage = new SecurityVerifiedMessage(this.
Message
, this);
749
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SecurityHeaderIsEmpty)), this.
Message
);
876
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredSignatureMissing)), this.
Message
);
972
SR.GetString(SR.NoTimestampAvailableInSecurityHeaderToDoReplayDetection)), this.
Message
);
977
SR.GetString(SR.NoSignatureAvailableInSecurityHeaderToDoReplayDetection)), this.
Message
);
1205
SR.GetString(SR.UnableToResolveKeyInfoClauseInDerivedKeyToken, stub.TokenToDeriveIdentifier)), this.
Message
);
1228
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.MissingIdInEncryptedElement)), this.
Message
);
1372
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.
Message
);
1387
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.
Message
);
1414
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureNotExpected)), this.
Message
);
1462
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsNotExpected)), this.
Message
);
1466
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsOccursAfterPrimarySignature)), this.
Message
);
1535
throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SupportingTokenSignaturesNotExpected)), this.
Message
);
1545
SR.GetString(SR.SigningWithoutPrimarySignatureRequiresTimestamp)), this.
Message
);
1561
SR.GetString(SR.NoPrimarySignatureAvailableForSupportingTokenSignatureVerification)), this.
Message
);
1572
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureVerificationFailed)), this.
Message
);
1594
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.DuplicateTimestampInSecurityHeader)), this.
Message
);
1637
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCouldNotReadToken, localName, namespaceUri, valueType)), this.
Message
);
1675
SR.GetString(SR.UnableToResolveKeyInfoClauseInDerivedKeyToken, tmpToken.TokenToDeriveIdentifier)), this.
Message
);
System\ServiceModel\Security\SendSecurityHeader.cs (22)
109
throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.
Message
);
114
SR.GetString(SR.MessagePartSpecificationMustBeImmutable)), this.
Message
);
167
get { return (SecurityAppliedMessage) this.
Message
; }
198
throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.
Message
);
203
SR.GetString(SR.MessagePartSpecificationMustBeImmutable)), this.
Message
);
235
throw TraceUtility.ThrowHelperArgumentNull("token", this.
Message
);
371
throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TimestampAlreadySetForSecurityHeader)), this.
Message
);
375
throw TraceUtility.ThrowHelperArgumentNull("timestamp", this.
Message
);
399
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
595
throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BasicTokenCannotBeWrittenWithoutEncryption)), this.
Message
);
751
throw TraceUtility.ThrowHelperError(new ArgumentNullException("SignatureParts"), this.
Message
);
761
throw TraceUtility.ThrowHelperError(new ArgumentNullException("EncryptionParts"), this.
Message
);
766
SecurityAppliedMessage message = new SecurityAppliedMessage(this.
Message
, this, signBody, encryptBody);
788
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
870
throw TraceUtility.ThrowHelperArgumentNull("token", this.
Message
);
874
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
881
SR.GetString(SR.SigningWithoutPrimarySignatureRequiresTimestamp)), this.
Message
);
889
SR.GetString(SR.PrimarySignatureMustBeComputedBeforeSupportingTokenSignatures)), this.
Message
);
894
SR.GetString(SR.SupportingTokenSignaturesNotExpected)), this.
Message
);
925
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
956
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
1005
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (5)
553
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.UnexpectedEncryptedElementInSecurityHeader)), this.
Message
);
560
new MessageSecurityException(SR.GetString(SR.UnableToResolveDataReference, this.pendingReferenceList.GetReferredId(0))), this.
Message
);
609
int headerIndex = this.
Message
.Headers.FindHeader(XD.AddressingDictionary.To.Value, this.
Message
.Version.Addressing.Namespace);
612
XmlDictionaryReader toHeaderReader = this.
Message
.Headers.GetReaderAtHeader(headerIndex);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (7)
129
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.ElementToSignMustHaveId)), this.
Message
);
148
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
175
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.ElementToSignMustHaveId)), this.
Message
);
195
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);
270
(header.Namespace == this.
Message
.Version.Addressing.Namespace))
532
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.NoPartsOfMessageMatchedPartsToSign)), this.
Message
);
735
throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.
Message
);