Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SessionSymmetricTransportSecurityProtocolFactory.cs / 1 / SessionSymmetricTransportSecurityProtocolFactory.cs
//---------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Security { using System.ServiceModel.Security.Tokens; using System.ServiceModel; class SessionSymmetricTransportSecurityProtocolFactory : TransportSecurityProtocolFactory { SecurityTokenParameters securityTokenParameters; SessionDerivedKeySecurityTokenParameters derivedKeyTokenParameters; public SessionSymmetricTransportSecurityProtocolFactory() : base() { } public override bool SupportsReplayDetection { get { return true; } } public SecurityTokenParameters SecurityTokenParameters { get { return this.securityTokenParameters; } set { ThrowIfImmutable(); this.securityTokenParameters = value; } } protected override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, object listenerSecurityState, TimeSpan timeout) { if (this.ActAsInitiator) { return new InitiatorSessionSymmetricTransportSecurityProtocol(this, target, via); } else { return new AcceptorSessionSymmetricTransportSecurityProtocol(this); } } public override void OnOpen(TimeSpan timeout) { base.OnOpen(timeout); if (this.SecurityTokenParameters == null) { OnPropertySettingsError("SecurityTokenParameters", true); } if (this.SecurityTokenParameters.RequireDerivedKeys) { this.ExpectKeyDerivation = true; this.derivedKeyTokenParameters = new SessionDerivedKeySecurityTokenParameters(this.ActAsInitiator); } } internal SecurityTokenParameters GetTokenParameters() { if (this.derivedKeyTokenParameters != null) { return this.derivedKeyTokenParameters; } else { return this.securityTokenParameters; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpReplyReader.cs
- ShaperBuffers.cs
- TTSEngineTypes.cs
- IntSumAggregationOperator.cs
- HwndMouseInputProvider.cs
- ZeroOpNode.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WeakReferenceKey.cs
- Brush.cs
- EditCommandColumn.cs
- SoapCodeExporter.cs
- TemplatePropertyEntry.cs
- DebugInfo.cs
- OdbcRowUpdatingEvent.cs
- ResourceReader.cs
- RNGCryptoServiceProvider.cs
- HttpListenerRequest.cs
- DbConnectionInternal.cs
- CodeTypeOfExpression.cs
- DrawingAttributes.cs
- DataControlImageButton.cs
- CapabilitiesUse.cs
- RelationshipWrapper.cs
- FillErrorEventArgs.cs
- COM2PropertyBuilderUITypeEditor.cs
- ReferencedAssembly.cs
- mda.cs
- SevenBitStream.cs
- NotFiniteNumberException.cs
- QueuePathDialog.cs
- WeakReferenceList.cs
- CellTreeNode.cs
- DataSet.cs
- TypeToArgumentTypeConverter.cs
- MarkupCompilePass2.cs
- GestureRecognitionResult.cs
- PlanCompilerUtil.cs
- SelfIssuedTokenFactoryCredential.cs
- MessageBodyMemberAttribute.cs
- OdbcConnectionOpen.cs
- ContentControl.cs
- xdrvalidator.cs
- LiteralTextContainerControlBuilder.cs
- FontSizeConverter.cs
- MailDefinition.cs
- Rules.cs
- Regex.cs
- TextTrailingWordEllipsis.cs
- ObjectDataSourceFilteringEventArgs.cs
- VisualStateGroup.cs
- Quaternion.cs
- FlowDocumentReaderAutomationPeer.cs
- TriggerAction.cs
- securitymgrsite.cs
- CommentAction.cs
- RawStylusActions.cs
- PageWrapper.cs
- ServicePoint.cs
- SqlConnectionPoolProviderInfo.cs
- StreamReader.cs
- BuildProvider.cs
- BufferedOutputStream.cs
- TextServicesDisplayAttributePropertyRanges.cs
- FileChangesMonitor.cs
- StringStorage.cs
- PopupEventArgs.cs
- TypeNameConverter.cs
- InputMethod.cs
- TrustSection.cs
- _NetworkingPerfCounters.cs
- UnauthorizedAccessException.cs
- DBParameter.cs
- ICspAsymmetricAlgorithm.cs
- DoubleUtil.cs
- ContentFileHelper.cs
- ContainerControl.cs
- SettingsSavedEventArgs.cs
- SqlFunctionAttribute.cs
- tooltip.cs
- NativeObjectSecurity.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TextSpanModifier.cs
- ValidationRuleCollection.cs
- KerberosTicketHashIdentifierClause.cs
- AssociatedControlConverter.cs
- MeasurementDCInfo.cs
- QilReference.cs
- ping.cs
- FormatSettings.cs
- FontUnit.cs
- StructuralObject.cs
- SliderAutomationPeer.cs
- EventInfo.cs
- complextypematerializer.cs
- InputMethodStateTypeInfo.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- XmlNodeList.cs
- WindowsToolbar.cs
- DataGridViewCellStyleConverter.cs
- XmlNodeChangedEventManager.cs