Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / TokenFactoryFactory.cs / 1 / TokenFactoryFactory.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Security.Cryptography.X509Certificates; using System.ServiceModel; using System.ServiceModel.Description; using System.Net; // // Summary: // Factory class for creating instances of ITokenFactoy impementations. // internal sealed class TokenFactoryFactory { private TokenFactoryFactory(){} // // Summary: // Creates a token factroy from the infocard and create info. // // Arguments: // connection: The StoreConnection info that can be queried // infoCard: The Card that was selected to be used. // parameter: The current creation parameters for the selected card. // proxy: The proxy data for the user // public static ITokenFactory Create( InfoCard infoCard, TokenCreationParameter parameter, ServiceEndpoint endPoint, IWebProxy proxy ) { ITokenFactory factory = null; // // Self issued only allows for SamlTokens. // if( infoCard.IsSelfIssued ) { factory = new SelfIssuedSamlTokenFactory( ); } else { factory = new RemoteTokenFactory( endPoint, proxy ); } return factory; } } } // 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
- DbFunctionCommandTree.cs
- SqlDependencyUtils.cs
- HostExecutionContextManager.cs
- RowSpanVector.cs
- SignedXml.cs
- AnnotationResource.cs
- Scheduling.cs
- XamlPathDataSerializer.cs
- WindowsFormsHostAutomationPeer.cs
- DataGrid.cs
- DataListItemCollection.cs
- XmlSerializer.cs
- PocoPropertyAccessorStrategy.cs
- PlatformCulture.cs
- DesignerWidgets.cs
- PolyLineSegment.cs
- AudioLevelUpdatedEventArgs.cs
- ToolStripSystemRenderer.cs
- ClearCollection.cs
- XPathNavigator.cs
- CodeLinePragma.cs
- WebPartTransformerCollection.cs
- ReservationCollection.cs
- QueryOptionExpression.cs
- SimpleMailWebEventProvider.cs
- AccessText.cs
- XmlReflectionImporter.cs
- CookielessHelper.cs
- DataSourceCacheDurationConverter.cs
- DbConnectionStringCommon.cs
- LocationReferenceValue.cs
- OleDbStruct.cs
- PagesSection.cs
- EasingQuaternionKeyFrame.cs
- DataGridViewComboBoxEditingControl.cs
- OutputScope.cs
- RoleManagerModule.cs
- webbrowsersite.cs
- DownloadProgressEventArgs.cs
- RepeaterCommandEventArgs.cs
- QueryGenerator.cs
- SimpleHandlerBuildProvider.cs
- QueryAsyncResult.cs
- ToolStripPanel.cs
- DetailsViewInsertedEventArgs.cs
- CompletedAsyncResult.cs
- ComEventsHelper.cs
- Page.cs
- CacheOutputQuery.cs
- URLEditor.cs
- Error.cs
- ArglessEventHandlerProxy.cs
- RetrieveVirtualItemEventArgs.cs
- Helper.cs
- WindowsListViewGroupSubsetLink.cs
- DoubleAnimationUsingKeyFrames.cs
- BackStopAuthenticationModule.cs
- XmlILConstructAnalyzer.cs
- ToolboxCategory.cs
- SoapMessage.cs
- MappedMetaModel.cs
- WebEventTraceProvider.cs
- PathFigureCollection.cs
- NamespaceList.cs
- ProxyDataContractResolver.cs
- ToolBarDesigner.cs
- MethodToken.cs
- RoutedEventConverter.cs
- DataGridViewCellFormattingEventArgs.cs
- MessageBox.cs
- SequenceDesigner.cs
- OracleConnectionStringBuilder.cs
- SystemPens.cs
- WindowsGrip.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SiteMembershipCondition.cs
- X509UI.cs
- ProgressPage.cs
- BitmapCodecInfoInternal.cs
- DtdParser.cs
- HandlerBase.cs
- XhtmlBasicPhoneCallAdapter.cs
- ColorInterpolationModeValidation.cs
- FileDialog.cs
- XsdValidatingReader.cs
- Int32Storage.cs
- CrossSiteScriptingValidation.cs
- Stroke.cs
- LinkAreaEditor.cs
- EmulateRecognizeCompletedEventArgs.cs
- Part.cs
- columnmapfactory.cs
- TypedReference.cs
- HttpWebResponse.cs
- ScriptResourceInfo.cs
- ThemeableAttribute.cs
- MouseActionConverter.cs
- HitTestFilterBehavior.cs
- ScopeElement.cs
- InkCanvas.cs