Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / IssuanceTokenProviderState.cs / 1 / IssuanceTokenProviderState.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Claims; using System.IdentityModel.Tokens; using System.ServiceModel; using System.IdentityModel.Policy; using System.Security.Principal; using System.Security.Cryptography.X509Certificates; using System.Collections.Generic; using System.ServiceModel.Channels; using System.ServiceModel.Security.Tokens; using System.Net; using System.Diagnostics; class IssuanceTokenProviderState : IDisposable { bool isNegotiationCompleted = false; GenericXmlSecurityToken serviceToken; string context; EndpointAddress targetAddress; EndpointAddress remoteAddress; public IssuanceTokenProviderState() { } public bool IsNegotiationCompleted { get { return this.isNegotiationCompleted; } } public GenericXmlSecurityToken ServiceToken { get { CheckCompleted(); return this.serviceToken; } } public EndpointAddress TargetAddress { get { return this.targetAddress; } set { this.targetAddress = value; } } public EndpointAddress RemoteAddress { get { return this.remoteAddress; } set { this.remoteAddress = value; } } public string Context { get { return this.context; } set { this.context = value; } } public virtual void Dispose() { } public void SetServiceToken(GenericXmlSecurityToken serviceToken) { if (this.IsNegotiationCompleted) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NegotiationIsCompleted))); } this.serviceToken = serviceToken; this.isNegotiationCompleted = true; } void CheckCompleted() { if (!this.IsNegotiationCompleted) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NegotiationIsNotCompleted))); } } } } // 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
- IApplicationTrustManager.cs
- ResourcePart.cs
- MD5CryptoServiceProvider.cs
- ExeConfigurationFileMap.cs
- InvokerUtil.cs
- LookupNode.cs
- Int64AnimationBase.cs
- XmlEntity.cs
- LinearGradientBrush.cs
- ProfileParameter.cs
- TaskResultSetter.cs
- HttpBufferlessInputStream.cs
- PathFigureCollection.cs
- Configuration.cs
- WebBrowser.cs
- RangeValueProviderWrapper.cs
- TemplateBamlRecordReader.cs
- COM2PictureConverter.cs
- CreateUserWizardDesigner.cs
- BeginGetFileNameFromUserRequest.cs
- BitVec.cs
- MatrixAnimationBase.cs
- RepeaterItemEventArgs.cs
- MaskInputRejectedEventArgs.cs
- FormsIdentity.cs
- PageThemeParser.cs
- Validator.cs
- HttpListenerRequest.cs
- TemplateControlCodeDomTreeGenerator.cs
- PropertyGridEditorPart.cs
- XmlSerializerNamespaces.cs
- DetailsViewInsertEventArgs.cs
- WindowCollection.cs
- ParserContext.cs
- GeometryModel3D.cs
- SiteMapNode.cs
- EdmType.cs
- PolyBezierSegment.cs
- MapPathBasedVirtualPathProvider.cs
- _ContextAwareResult.cs
- AssociationType.cs
- RequestStatusBarUpdateEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- ProcessHostMapPath.cs
- ListInitExpression.cs
- ImageAnimator.cs
- HMACSHA512.cs
- PolicyLevel.cs
- XPathChildIterator.cs
- SignedXmlDebugLog.cs
- ContractMethodInfo.cs
- HTMLTextWriter.cs
- PopOutPanel.cs
- ButtonStandardAdapter.cs
- PrimaryKeyTypeConverter.cs
- ServiceNotStartedException.cs
- HttpException.cs
- XamlFxTrace.cs
- SqlNode.cs
- RelationshipWrapper.cs
- XamlUtilities.cs
- CodeGenerationManager.cs
- CodeDirectoryCompiler.cs
- MILUtilities.cs
- RefreshEventArgs.cs
- ProfileSettingsCollection.cs
- PackWebResponse.cs
- ObjectTokenCategory.cs
- DispatcherObject.cs
- SiteIdentityPermission.cs
- PageRanges.cs
- ConfigurationPropertyCollection.cs
- EntityType.cs
- WebPartConnectionsCancelEventArgs.cs
- PrtCap_Public.cs
- ServiceManager.cs
- SizeAnimationBase.cs
- XmlSerializerNamespaces.cs
- CachedTypeface.cs
- InternalResources.cs
- QilXmlWriter.cs
- VisualStyleInformation.cs
- OutputCacheSection.cs
- ConfigurationElementProperty.cs
- _FtpDataStream.cs
- UnsafePeerToPeerMethods.cs
- RegexMatchCollection.cs
- EncryptedKey.cs
- CodeMethodInvokeExpression.cs
- CallTemplateAction.cs
- SyndicationContent.cs
- Lazy.cs
- Logging.cs
- DetailsViewDeleteEventArgs.cs
- FixedTextPointer.cs
- InvokePatternIdentifiers.cs
- TextElementEnumerator.cs
- dbenumerator.cs
- TextViewElement.cs
- ZipArchive.cs