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
- BitmapCacheBrush.cs
- SymLanguageType.cs
- WorkflowViewService.cs
- SchemaImporterExtensionElement.cs
- MultilineStringConverter.cs
- XmlNodeReader.cs
- ProxySimple.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridCommandEventArgs.cs
- DBNull.cs
- SelectionHighlightInfo.cs
- Content.cs
- ViewManagerAttribute.cs
- CalloutQueueItem.cs
- EventSourceCreationData.cs
- DragEventArgs.cs
- EventProvider.cs
- HostedBindingBehavior.cs
- AspNetSynchronizationContext.cs
- CombinedGeometry.cs
- OptimizedTemplateContent.cs
- PriorityRange.cs
- columnmapkeybuilder.cs
- SqlConnectionStringBuilder.cs
- BeginEvent.cs
- OAVariantLib.cs
- AuthenticationModulesSection.cs
- FastEncoder.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- WindowsListBox.cs
- SeverityFilter.cs
- NumberSubstitution.cs
- MULTI_QI.cs
- DSGeneratorProblem.cs
- UndoManager.cs
- Convert.cs
- ScriptingAuthenticationServiceSection.cs
- MemberProjectionIndex.cs
- SequentialWorkflowHeaderFooter.cs
- DataKey.cs
- XmlSerializationWriter.cs
- AspNetSynchronizationContext.cs
- MeasureItemEvent.cs
- SubqueryRules.cs
- SecureStringHasher.cs
- WebColorConverter.cs
- ModelUIElement3D.cs
- ListItemCollection.cs
- FreezableOperations.cs
- CreateUserErrorEventArgs.cs
- MemberHolder.cs
- MD5CryptoServiceProvider.cs
- TableRowGroupCollection.cs
- ServiceHandle.cs
- SourceSwitch.cs
- EdmEntityTypeAttribute.cs
- UserControlBuildProvider.cs
- XmlRawWriter.cs
- RandomNumberGenerator.cs
- AsnEncodedData.cs
- TransactionFlowBindingElementImporter.cs
- QilCloneVisitor.cs
- RectangleHotSpot.cs
- PaintValueEventArgs.cs
- MailWebEventProvider.cs
- ControlTemplate.cs
- DataGridViewColumnEventArgs.cs
- TabRenderer.cs
- ReliableInputConnection.cs
- ContextMenu.cs
- PeerCredential.cs
- CustomErrorsSection.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- LiteralSubsegment.cs
- AttributeData.cs
- FormsAuthentication.cs
- LinkedList.cs
- InteropTrackingRecord.cs
- TrackingLocationCollection.cs
- TypedTableBase.cs
- OrderByExpression.cs
- AuthenticateEventArgs.cs
- UIPropertyMetadata.cs
- DispatcherSynchronizationContext.cs
- BuildProviderCollection.cs
- XmlNodeWriter.cs
- StrokeFIndices.cs
- _ShellExpression.cs
- WebHttpDispatchOperationSelectorData.cs
- PropertyBuilder.cs
- CqlErrorHelper.cs
- SurrogateChar.cs
- SHA256.cs
- StateWorkerRequest.cs
- XmlSchemaComplexType.cs
- BindingBase.cs
- DataService.cs
- AQNBuilder.cs
- IssuanceTokenProviderBase.cs
- SkewTransform.cs