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
- HuffCodec.cs
- OpenTypeCommon.cs
- Padding.cs
- ValueOfAction.cs
- LayoutEngine.cs
- PackageRelationshipCollection.cs
- PropertyInformation.cs
- ViewKeyConstraint.cs
- XmlSchemaGroup.cs
- CodeDefaultValueExpression.cs
- ListView.cs
- RangeValidator.cs
- Point3DCollection.cs
- StylusPointPropertyInfoDefaults.cs
- SchemaCollectionPreprocessor.cs
- CompiledIdentityConstraint.cs
- OleDbCommandBuilder.cs
- DefaultEventAttribute.cs
- ManagedWndProcTracker.cs
- XmlNamespaceDeclarationsAttribute.cs
- KeyPressEvent.cs
- DoubleAnimationClockResource.cs
- EntityConnection.cs
- ExpressionBindingCollection.cs
- OleCmdHelper.cs
- HttpRuntimeSection.cs
- Decoder.cs
- CompositeDataBoundControl.cs
- SecurityTokenInclusionMode.cs
- RequestQueue.cs
- QueryLifecycle.cs
- CompilerResults.cs
- FixedPageStructure.cs
- RequestDescription.cs
- SqlStatistics.cs
- ImageKeyConverter.cs
- TraceSection.cs
- DataPagerField.cs
- HttpBindingExtension.cs
- PlaceHolder.cs
- XmlSchemaAnyAttribute.cs
- AutomationEvent.cs
- DataPagerField.cs
- FontUnit.cs
- NameTable.cs
- HttpFileCollection.cs
- EventToken.cs
- WebBrowserDocumentCompletedEventHandler.cs
- AnnotationHelper.cs
- NativeMethods.cs
- sqlstateclientmanager.cs
- MediaPlayer.cs
- WebReferencesBuildProvider.cs
- Timeline.cs
- PageContent.cs
- MatrixCamera.cs
- DoubleUtil.cs
- UnitySerializationHolder.cs
- ToolStripItemImageRenderEventArgs.cs
- HttpListenerException.cs
- StringFormat.cs
- ReadOnlyDataSource.cs
- SemaphoreFullException.cs
- PageAsyncTaskManager.cs
- CommonGetThemePartSize.cs
- XmlSchemaImporter.cs
- InheritanceUI.cs
- FontStyles.cs
- DataGridViewImageCell.cs
- QueryOperationResponseOfT.cs
- SystemFonts.cs
- CacheForPrimitiveTypes.cs
- DecimalSumAggregationOperator.cs
- IDispatchConstantAttribute.cs
- UrlSyndicationContent.cs
- PropertyDescriptorComparer.cs
- ADConnectionHelper.cs
- RankException.cs
- EpmCustomContentDeSerializer.cs
- FilteredAttributeCollection.cs
- FontSizeConverter.cs
- GlobalizationAssembly.cs
- Cursors.cs
- StorageAssociationTypeMapping.cs
- TimelineClockCollection.cs
- EditorPartDesigner.cs
- SizeLimitedCache.cs
- WriteFileContext.cs
- TrackingStringDictionary.cs
- MessageDecoder.cs
- ToolStripCustomTypeDescriptor.cs
- TabControl.cs
- DocobjHost.cs
- WorkflowIdleElement.cs
- MatrixAnimationBase.cs
- AssemblyInfo.cs
- CompiledScopeCriteria.cs
- SerializationException.cs
- thaishape.cs
- ExceptionUtil.cs