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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HTTPRemotingHandler.cs
- indexingfiltermarshaler.cs
- DefaultValueConverter.cs
- UpdatePanelTrigger.cs
- TemplateControlParser.cs
- NativeMethods.cs
- ExceptionHandlerDesigner.cs
- MLangCodePageEncoding.cs
- ScheduleChanges.cs
- Paragraph.cs
- SmiContext.cs
- ConnectionManagementElement.cs
- AccessViolationException.cs
- GregorianCalendar.cs
- JsonClassDataContract.cs
- TimelineGroup.cs
- MultiPageTextView.cs
- RTTrackingProfile.cs
- ServiceInfoCollection.cs
- SqlBuilder.cs
- AttributeCollection.cs
- PackWebRequestFactory.cs
- HistoryEventArgs.cs
- SecurityResources.cs
- ManagementEventArgs.cs
- EraserBehavior.cs
- CreateDataSourceDialog.cs
- XmlNodeChangedEventManager.cs
- InternalBufferManager.cs
- SqlMethodCallConverter.cs
- String.cs
- ToolStripItemClickedEventArgs.cs
- InheritanceRules.cs
- ApplicationSecurityManager.cs
- BitmapEffectState.cs
- ConfigXmlText.cs
- Panel.cs
- MultiPartWriter.cs
- DBConnectionString.cs
- IntegerValidator.cs
- PersonalizableAttribute.cs
- RenderData.cs
- XmlReturnReader.cs
- DataServiceQuery.cs
- ListItemConverter.cs
- MultiViewDesigner.cs
- TableLayout.cs
- UnicodeEncoding.cs
- Panel.cs
- FixedPosition.cs
- Signature.cs
- TraceContextEventArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DomNameTable.cs
- SmtpNtlmAuthenticationModule.cs
- CheckedListBox.cs
- MembershipSection.cs
- IDispatchConstantAttribute.cs
- Quack.cs
- NumericPagerField.cs
- TextOutput.cs
- LogicalCallContext.cs
- ImagingCache.cs
- SqlTriggerAttribute.cs
- ImageConverter.cs
- ReferentialConstraint.cs
- ColumnHeader.cs
- XmlHierarchicalDataSourceView.cs
- SecurityTokenContainer.cs
- Inflater.cs
- TimeoutHelper.cs
- WpfGeneratedKnownTypes.cs
- ContainerControl.cs
- DrawListViewSubItemEventArgs.cs
- SafeHGlobalHandleCritical.cs
- SmtpReplyReader.cs
- BooleanAnimationUsingKeyFrames.cs
- InfoCardSymmetricCrypto.cs
- EdmProviderManifest.cs
- DependencyPropertyKey.cs
- CryptoApi.cs
- Vector3DValueSerializer.cs
- StatusBarAutomationPeer.cs
- XmlUnspecifiedAttribute.cs
- SignedXml.cs
- DocumentOrderComparer.cs
- WizardStepCollectionEditor.cs
- BitmapDecoder.cs
- ItemChangedEventArgs.cs
- NameSpaceExtractor.cs
- RoutingExtension.cs
- OciLobLocator.cs
- OpenTypeCommon.cs
- UnmanagedMarshal.cs
- Cursor.cs
- WebPartTransformerAttribute.cs
- XmlResolver.cs
- ScriptControlDescriptor.cs
- ListenerConnectionModeReader.cs
- SBCSCodePageEncoding.cs