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
![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
- CompressionTracing.cs
- SafeEventLogWriteHandle.cs
- TimelineGroup.cs
- ThreadAttributes.cs
- BitStream.cs
- LineGeometry.cs
- ServerTooBusyException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- WindowsSpinner.cs
- PropertyKey.cs
- DragEvent.cs
- PersonalizationStateInfoCollection.cs
- Command.cs
- dtdvalidator.cs
- ClientConfigurationSystem.cs
- WebPartHeaderCloseVerb.cs
- WorkflowMessageEventHandler.cs
- ReadOnlyDictionary.cs
- Triplet.cs
- SessionStateItemCollection.cs
- TypeUsage.cs
- MetadataWorkspace.cs
- InvalidWorkflowException.cs
- UTF7Encoding.cs
- InfoCardSymmetricCrypto.cs
- __ConsoleStream.cs
- NewExpression.cs
- StringPropertyBuilder.cs
- QuotedPairReader.cs
- RenderTargetBitmap.cs
- TraceLog.cs
- NamespaceEmitter.cs
- XmlNamedNodeMap.cs
- ByteAnimation.cs
- MailHeaderInfo.cs
- WorkflowMarkupSerializationManager.cs
- SystemFonts.cs
- MembershipUser.cs
- WebPartsSection.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- NamespaceEmitter.cs
- PeerResolver.cs
- CanonicalFontFamilyReference.cs
- ReaderOutput.cs
- AccessDataSource.cs
- TileBrush.cs
- SoapMessage.cs
- DoubleAnimation.cs
- IsolationInterop.cs
- __Filters.cs
- HtmlMeta.cs
- ThrowHelper.cs
- InputLanguage.cs
- RequestCachingSection.cs
- ZipIOBlockManager.cs
- ListDictionaryInternal.cs
- ConsoleKeyInfo.cs
- ConfigXmlCDataSection.cs
- remotingproxy.cs
- ScriptResourceDefinition.cs
- NullToBooleanConverter.cs
- FileFormatException.cs
- ProfileGroupSettingsCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TraceContextRecord.cs
- FunctionNode.cs
- ListViewContainer.cs
- GenerateTemporaryTargetAssembly.cs
- WindowsSysHeader.cs
- DocumentPaginator.cs
- SpAudioStreamWrapper.cs
- ParamArrayAttribute.cs
- CacheAxisQuery.cs
- ResourcePermissionBaseEntry.cs
- CompiledXpathExpr.cs
- PreviewPageInfo.cs
- SymbolEqualComparer.cs
- HScrollBar.cs
- SchemaAttDef.cs
- StorageTypeMapping.cs
- IsolatedStorageFile.cs
- XmlSubtreeReader.cs
- ClientSponsor.cs
- ApplicationException.cs
- ProcessThreadCollection.cs
- UIPropertyMetadata.cs
- DataSourceConverter.cs
- StylusDownEventArgs.cs
- CachedCompositeFamily.cs
- OrderedDictionaryStateHelper.cs
- Floater.cs
- TimelineClockCollection.cs
- ReadOnlyDataSource.cs
- ObjectKeyFrameCollection.cs
- PersonalizableAttribute.cs
- DataGridViewDataConnection.cs
- MultiDataTrigger.cs
- SpecialFolderEnumConverter.cs
- WebPartVerb.cs
- AdjustableArrowCap.cs