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
- GenericEnumConverter.cs
- TableParaClient.cs
- DetailsViewRow.cs
- SingleAnimationBase.cs
- DomainUpDown.cs
- TreeNodeStyle.cs
- XmlSchemaGroupRef.cs
- SafeNativeMemoryHandle.cs
- NameTable.cs
- DataGridViewColumnConverter.cs
- NullableConverter.cs
- DefaultWorkflowTransactionService.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- Configuration.cs
- ArraySet.cs
- DelegateHelpers.cs
- Quaternion.cs
- PtsPage.cs
- xmlformatgeneratorstatics.cs
- ParallelTimeline.cs
- Application.cs
- ValidatingCollection.cs
- VarRefManager.cs
- ActivityTypeCodeDomSerializer.cs
- ExpandSegmentCollection.cs
- PagerStyle.cs
- HWStack.cs
- TextServicesCompartmentEventSink.cs
- TypeUtil.cs
- HttpAsyncResult.cs
- TextParagraphCache.cs
- BaseAsyncResult.cs
- ArraySortHelper.cs
- HashHelpers.cs
- HtmlControlPersistable.cs
- ToolZone.cs
- RtfNavigator.cs
- ConfigurationStrings.cs
- EntityDataSourceReferenceGroup.cs
- SamlDoNotCacheCondition.cs
- DispatcherProcessingDisabled.cs
- SessionState.cs
- LinqDataSourceUpdateEventArgs.cs
- SqlInternalConnection.cs
- RequestCacheEntry.cs
- FileLoadException.cs
- xmlglyphRunInfo.cs
- RootBrowserWindow.cs
- BindingListCollectionView.cs
- CollectionChangedEventManager.cs
- NameSpaceExtractor.cs
- Msec.cs
- ExceptionCollection.cs
- BaseContextMenu.cs
- SchemaImporter.cs
- MenuItemAutomationPeer.cs
- Soap.cs
- DivideByZeroException.cs
- Effect.cs
- WebServiceErrorEvent.cs
- RegisteredExpandoAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- ProxyWebPartManager.cs
- HttpModuleCollection.cs
- SoapBinding.cs
- Thread.cs
- MethodToken.cs
- PrefixHandle.cs
- WhitespaceRule.cs
- IncrementalHitTester.cs
- URLMembershipCondition.cs
- EventProviderWriter.cs
- ProtocolsConfigurationEntry.cs
- SignedXml.cs
- ClientCultureInfo.cs
- EntityCommandDefinition.cs
- CodeNamespace.cs
- DocobjHost.cs
- FileIOPermission.cs
- LinkedList.cs
- ReadOnlyDataSource.cs
- CodeConditionStatement.cs
- FillRuleValidation.cs
- GcHandle.cs
- WinOEToolBoxItem.cs
- TimeSpan.cs
- DescendantOverDescendantQuery.cs
- SocketAddress.cs
- ModelItemExtensions.cs
- exports.cs
- TabletDevice.cs
- RoleGroupCollection.cs
- CompilerParameters.cs
- AttachmentCollection.cs
- TemplateBindingExtension.cs
- BamlLocalizableResource.cs
- PostBackOptions.cs
- DoubleAnimationUsingPath.cs
- SettingsPropertyCollection.cs
- Utility.cs