Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / TokenFactoryBase.cs / 1 / TokenFactoryBase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.ServiceModel.Security; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary: // Base implementation of ITokenFactory. // internal abstract class TokenFactoryBase : ITokenFactory { bool m_aborted; public bool IsAborted { get{ return m_aborted; } } // // Summary: // Base CTOR for all derived classes // protected TokenFactoryBase() { } // // Summary: // Creates a TokenDescriptor object for the specified recipient. // // Params: // infoCard: The infocard that the token will be generated from. // credential: The credential object used to autenticate/authorize with a token factory. // policy: Specifies the policy of the relying party or identity provider. // discloseOptional: Specifies whether optional claims are to be disclosed. // public TokenDescriptor CreateToken( InfoCard infoCard, TokenFactoryCredential credential, InfoCardPolicy policy, bool discloseOptional ) { TokenCreationParameter param = null; // // If credentials where provided, and the credential used a param, get the param. // if( null != credential && TokenFactoryCredential.NoCredential != credential.ParameterIndex ) { param = infoCard.CreationParameters[ credential.ParameterIndex ]; } return ProduceToken( infoCard, param, credential, policy, discloseOptional ); } public void Abort() { OnAbort(); m_aborted = true; } // // Summary: // Derived class entrypoint. Implementers must implement this method. // protected abstract TokenDescriptor ProduceToken( InfoCard card, TokenCreationParameter parameters, TokenFactoryCredential credential, InfoCardPolicy policy, bool discloseOptional ); // // Overide when aborting the token creation. // protected virtual void OnAbort() { } } } // 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
- BaseCodeDomTreeGenerator.cs
- Msec.cs
- PersonalizablePropertyEntry.cs
- Splitter.cs
- WebPartConnectionsConnectVerb.cs
- SemanticResultValue.cs
- HtmlLabelAdapter.cs
- LicenseException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- TypeUsage.cs
- Win32.cs
- Rule.cs
- AppSettingsExpressionBuilder.cs
- CredentialCache.cs
- RegexReplacement.cs
- Point3DValueSerializer.cs
- PropertyFilter.cs
- Tracer.cs
- SemanticValue.cs
- Soap.cs
- DataObjectSettingDataEventArgs.cs
- PeerObject.cs
- Options.cs
- MobileControlsSectionHandler.cs
- PrivateFontCollection.cs
- HttpHandlerActionCollection.cs
- SmiSettersStream.cs
- SemanticResolver.cs
- PassportAuthenticationModule.cs
- TextSearch.cs
- ObjectReferenceStack.cs
- TypefaceMap.cs
- CollectionDataContractAttribute.cs
- ObjectContext.cs
- MainMenu.cs
- OutKeywords.cs
- WebPartCatalogCloseVerb.cs
- TimeSpanSecondsConverter.cs
- JpegBitmapEncoder.cs
- AsymmetricKeyExchangeFormatter.cs
- CharEntityEncoderFallback.cs
- FormViewCommandEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- ContextMarshalException.cs
- Win32.cs
- XsltOutput.cs
- SiteMapNode.cs
- FamilyMapCollection.cs
- FloaterBaseParagraph.cs
- HostedTcpTransportManager.cs
- Int32CAMarshaler.cs
- CompilerTypeWithParams.cs
- ConfigurationConverterBase.cs
- Utils.cs
- WindowShowOrOpenTracker.cs
- ToolStripLocationCancelEventArgs.cs
- StrongTypingException.cs
- SHA256Managed.cs
- CellNormalizer.cs
- XmlCharCheckingReader.cs
- Separator.cs
- UnsafeNativeMethods.cs
- FormsAuthenticationModule.cs
- WebInvokeAttribute.cs
- SqlConnectionString.cs
- TemporaryBitmapFile.cs
- UrlMappingsModule.cs
- EventRoute.cs
- IpcChannelHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlHierarchicalEnumerable.cs
- ObjectParameterCollection.cs
- SemanticKeyElement.cs
- HtmlControl.cs
- SystemIPv6InterfaceProperties.cs
- RouteData.cs
- TextLineBreak.cs
- MobileUITypeEditor.cs
- Manipulation.cs
- Base64WriteStateInfo.cs
- ColumnClickEvent.cs
- RuleEngine.cs
- XPathDocumentNavigator.cs
- XmlCodeExporter.cs
- DataSourceCacheDurationConverter.cs
- KnownBoxes.cs
- CodeNamespaceImportCollection.cs
- IBuiltInEvidence.cs
- TableLayoutStyle.cs
- ColorComboBox.cs
- ControlDesigner.cs
- TimeSpanMinutesConverter.cs
- MetabaseServerConfig.cs
- WebControl.cs
- TreeIterator.cs
- RegionIterator.cs
- Property.cs
- SectionInput.cs
- TableProviderWrapper.cs
- EventPropertyMap.cs