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
- UrlAuthorizationModule.cs
- ClientUtils.cs
- XmlMemberMapping.cs
- NetMsmqSecurityElement.cs
- XmlSerializerOperationBehavior.cs
- PopupRootAutomationPeer.cs
- FileUtil.cs
- PageContent.cs
- HwndSubclass.cs
- RecordManager.cs
- WebRequestModulesSection.cs
- TypeUtil.cs
- CatalogPartCollection.cs
- ReflectionPermission.cs
- SQLRoleProvider.cs
- DataSourceCacheDurationConverter.cs
- GridItemPattern.cs
- DbFunctionCommandTree.cs
- ApplicationProxyInternal.cs
- AvtEvent.cs
- DoubleAnimationClockResource.cs
- BitStream.cs
- SqlInternalConnectionSmi.cs
- SmtpReplyReaderFactory.cs
- EntityCommandExecutionException.cs
- MonitorWrapper.cs
- XmlCodeExporter.cs
- WindowsToolbar.cs
- documentsequencetextcontainer.cs
- MemberAssignment.cs
- StyleXamlParser.cs
- RangeBaseAutomationPeer.cs
- Pair.cs
- Int32Animation.cs
- IxmlLineInfo.cs
- IntranetCredentialPolicy.cs
- ObjectDataSourceMethodEventArgs.cs
- ConfigXmlComment.cs
- X509Utils.cs
- HtmlControl.cs
- ReadWriteObjectLock.cs
- CodeGen.cs
- OracleConnectionString.cs
- BackgroundFormatInfo.cs
- As.cs
- TdsParser.cs
- DateRangeEvent.cs
- SortedList.cs
- OpenTypeLayoutCache.cs
- QueryGeneratorBase.cs
- UIElementAutomationPeer.cs
- DataView.cs
- UnsafeNativeMethods.cs
- HttpRequestWrapper.cs
- PageAsyncTask.cs
- RepeatButtonAutomationPeer.cs
- SemanticKeyElement.cs
- ScriptResourceHandler.cs
- TreeChangeInfo.cs
- EmbeddedMailObjectsCollection.cs
- ProxyAttribute.cs
- IdentitySection.cs
- AuthenticationService.cs
- WebProxyScriptElement.cs
- OdbcPermission.cs
- XmlObjectSerializer.cs
- FileFormatException.cs
- ListViewAutomationPeer.cs
- TextSerializer.cs
- DeclarationUpdate.cs
- SmtpCommands.cs
- StoragePropertyMapping.cs
- SQLDoubleStorage.cs
- ResXResourceReader.cs
- SystemIcons.cs
- TabletCollection.cs
- Comparer.cs
- Int64AnimationUsingKeyFrames.cs
- EdmPropertyAttribute.cs
- SignedXml.cs
- ConnectionPointConverter.cs
- BamlBinaryReader.cs
- PointCollection.cs
- PropertyItemInternal.cs
- UniqueEventHelper.cs
- ContainerActivationHelper.cs
- ModuleConfigurationInfo.cs
- Point4DConverter.cs
- TransformCollection.cs
- IndexingContentUnit.cs
- AuthenticationSection.cs
- CacheOutputQuery.cs
- NetStream.cs
- SqlConnectionStringBuilder.cs
- WorkflowPersistenceService.cs
- SafeSecurityHandles.cs
- InternalCache.cs
- MobileCategoryAttribute.cs
- Geometry.cs
- mediapermission.cs