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
- CreateBookmarkScope.cs
- ListViewAutomationPeer.cs
- FixedSOMPageElement.cs
- ApplicationManager.cs
- MatchingStyle.cs
- InkSerializer.cs
- IItemContainerGenerator.cs
- WindowsFormsDesignerOptionService.cs
- EnumUnknown.cs
- SqlCaseSimplifier.cs
- AspNetHostingPermission.cs
- TextEmbeddedObject.cs
- ClipboardData.cs
- DynamicValidator.cs
- HMACSHA256.cs
- PlaceHolder.cs
- HttpProcessUtility.cs
- ComboBoxAutomationPeer.cs
- WorkflowTransactionService.cs
- SqlBooleanMismatchVisitor.cs
- FormatterServices.cs
- RootCodeDomSerializer.cs
- CreateParams.cs
- NullableIntAverageAggregationOperator.cs
- TriggerBase.cs
- XmlDataCollection.cs
- SendKeys.cs
- NameScope.cs
- SlotInfo.cs
- ThreadExceptionDialog.cs
- SoapIncludeAttribute.cs
- HttpHandlerActionCollection.cs
- X509Utils.cs
- MemberNameValidator.cs
- OdbcConnectionStringbuilder.cs
- StyleSelector.cs
- SequenceRangeCollection.cs
- ViewStateModeByIdAttribute.cs
- Char.cs
- VerificationAttribute.cs
- GroupQuery.cs
- XmlSubtreeReader.cs
- GB18030Encoding.cs
- SqlInternalConnectionSmi.cs
- WindowsServiceCredential.cs
- DataGridViewRowConverter.cs
- ObjectTypeMapping.cs
- XmlSchema.cs
- ObjectItemNoOpAssemblyLoader.cs
- XmlSortKey.cs
- WebRequest.cs
- DataException.cs
- ConfigXmlElement.cs
- IndexedGlyphRun.cs
- TreeNodeEventArgs.cs
- AlphaSortedEnumConverter.cs
- VarRefManager.cs
- ContentDisposition.cs
- InstallerTypeAttribute.cs
- EmbossBitmapEffect.cs
- Helpers.cs
- ConsoleKeyInfo.cs
- TagPrefixCollection.cs
- StorageConditionPropertyMapping.cs
- AutomationFocusChangedEventArgs.cs
- OracleParameterCollection.cs
- GcSettings.cs
- ListChangedEventArgs.cs
- DifferencingCollection.cs
- BindingMemberInfo.cs
- ResetableIterator.cs
- GroupItemAutomationPeer.cs
- BaseResourcesBuildProvider.cs
- ArrayMergeHelper.cs
- ThreadInterruptedException.cs
- ConfigurationStrings.cs
- ImageBrush.cs
- ViewService.cs
- SharedConnectionWorkflowTransactionService.cs
- StateFinalizationDesigner.cs
- FillErrorEventArgs.cs
- SrgsElement.cs
- GPRECTF.cs
- EmbeddedObject.cs
- IISMapPath.cs
- PropertyInfo.cs
- MenuItem.cs
- CollectionBuilder.cs
- SystemIPAddressInformation.cs
- IncrementalHitTester.cs
- SocketElement.cs
- RectAnimation.cs
- AspNetCacheProfileAttribute.cs
- AppDomainResourcePerfCounters.cs
- EnvironmentPermission.cs
- PropertyAccessVisitor.cs
- CodeAttributeDeclaration.cs
- COAUTHINFO.cs
- ImageCodecInfoPrivate.cs
- SizeF.cs