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
- MetadataPropertyCollection.cs
- BindingMAnagerBase.cs
- Int64.cs
- StringUtil.cs
- Grid.cs
- CommonObjectSecurity.cs
- HttpResponse.cs
- ScrollProviderWrapper.cs
- CryptoApi.cs
- RealizedColumnsBlock.cs
- SafeNativeMethods.cs
- COMException.cs
- SHA1Managed.cs
- figurelength.cs
- ToolStripItemDataObject.cs
- PropertyPathConverter.cs
- DbConnectionHelper.cs
- ObjectAnimationBase.cs
- TextTreeDeleteContentUndoUnit.cs
- LiteralControl.cs
- TimerElapsedEvenArgs.cs
- MultiTrigger.cs
- XPathNodeList.cs
- HttpEncoder.cs
- XNodeNavigator.cs
- ConstructorArgumentAttribute.cs
- NameValueConfigurationElement.cs
- FileChangeNotifier.cs
- TextFormatterImp.cs
- ToolStripScrollButton.cs
- XmlElementAttribute.cs
- OracleColumn.cs
- AuthenticateEventArgs.cs
- GridErrorDlg.cs
- ServiceDescription.cs
- MdiWindowListStrip.cs
- ProcessHostFactoryHelper.cs
- Duration.cs
- BlurEffect.cs
- DesigntimeLicenseContextSerializer.cs
- InternalControlCollection.cs
- DataColumn.cs
- IndexedGlyphRun.cs
- MessageSecurityOverMsmq.cs
- TraceContextEventArgs.cs
- WriteFileContext.cs
- FastEncoderWindow.cs
- WindowsFormsEditorServiceHelper.cs
- GAC.cs
- DecimalAnimation.cs
- TextViewDesigner.cs
- WpfKnownMemberInvoker.cs
- NullRuntimeConfig.cs
- ContractMapping.cs
- ParserOptions.cs
- AnonymousIdentificationSection.cs
- TransformPattern.cs
- GetWinFXPath.cs
- SynchronizedPool.cs
- prefixendpointaddressmessagefilter.cs
- ProtocolsConfigurationEntry.cs
- UICuesEvent.cs
- WebPartEditVerb.cs
- XPathSelectionIterator.cs
- BinaryReader.cs
- HttpHandlersSection.cs
- FontCollection.cs
- ModifierKeysValueSerializer.cs
- TextTreePropertyUndoUnit.cs
- InkCanvasInnerCanvas.cs
- BinaryObjectWriter.cs
- MenuAutomationPeer.cs
- PerformanceCounterPermissionEntryCollection.cs
- SecurityKeyIdentifierClause.cs
- nulltextnavigator.cs
- HostingPreferredMapPath.cs
- ScriptReferenceBase.cs
- NameHandler.cs
- SRef.cs
- SocketInformation.cs
- SecurityToken.cs
- ClassHandlersStore.cs
- EncryptedXml.cs
- TextBlockAutomationPeer.cs
- ConnectionInterfaceCollection.cs
- SerialPinChanges.cs
- UnconditionalPolicy.cs
- ImageDrawing.cs
- DataGridViewRow.cs
- ListBox.cs
- WebPartCatalogAddVerb.cs
- DriveInfo.cs
- MenuItemCollection.cs
- StaticFileHandler.cs
- SmtpDigestAuthenticationModule.cs
- XmlSerializerImportOptions.cs
- ServiceContractViewControl.Designer.cs
- SecurityUniqueId.cs
- CreateParams.cs
- LeaseManager.cs