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
- RegexCapture.cs
- ExpressionLexer.cs
- RtfToXamlReader.cs
- CommandSet.cs
- ToggleProviderWrapper.cs
- CatalogPartChrome.cs
- XmlWrappingWriter.cs
- WebAdminConfigurationHelper.cs
- RijndaelManaged.cs
- ICspAsymmetricAlgorithm.cs
- Path.cs
- TextUtf8RawTextWriter.cs
- FileUtil.cs
- XmlSignatureProperties.cs
- SqlDataSourceQueryEditorForm.cs
- EntityDataSourceConfigureObjectContext.cs
- ProfileWorkflowElement.cs
- TypeSource.cs
- CheckableControlBaseAdapter.cs
- SqlClientWrapperSmiStreamChars.cs
- ChtmlLinkAdapter.cs
- ConfigurationHelpers.cs
- RenderData.cs
- Transform3DGroup.cs
- XmlFormatReaderGenerator.cs
- ClientSponsor.cs
- XsltConvert.cs
- AuthenticationModuleElementCollection.cs
- RecordConverter.cs
- PageScaling.cs
- RectAnimationUsingKeyFrames.cs
- SpotLight.cs
- StrokeIntersection.cs
- FloaterParagraph.cs
- GZipDecoder.cs
- SettingsAttributeDictionary.cs
- LoginView.cs
- ColumnWidthChangingEvent.cs
- ParserContext.cs
- CardSpaceException.cs
- RuntimeConfigLKG.cs
- DbConnectionStringCommon.cs
- ExclusiveCanonicalizationTransform.cs
- FixedSOMGroup.cs
- EndOfStreamException.cs
- InnerItemCollectionView.cs
- InfocardInteractiveChannelInitializer.cs
- TemplateControlBuildProvider.cs
- XNodeValidator.cs
- FastEncoder.cs
- BackgroundWorker.cs
- AccessDataSource.cs
- EtwTrackingParticipant.cs
- KeyedHashAlgorithm.cs
- DataContractAttribute.cs
- EntityWithKeyStrategy.cs
- followingsibling.cs
- WebEventTraceProvider.cs
- ImportStoreException.cs
- TextSelectionHighlightLayer.cs
- DataGridViewTextBoxCell.cs
- DataColumnChangeEvent.cs
- userdatakeys.cs
- Codec.cs
- Point.cs
- Literal.cs
- VisualBrush.cs
- XmlSerializerFactory.cs
- NamespaceQuery.cs
- LocatorManager.cs
- DataControlReference.cs
- SHA1.cs
- Annotation.cs
- InlinedAggregationOperator.cs
- MetadataItemEmitter.cs
- StaticFileHandler.cs
- XmlSchemaSequence.cs
- SqlDataSourceConfigureFilterForm.cs
- DataGridViewTopLeftHeaderCell.cs
- ResourceReferenceExpression.cs
- EndpointNameMessageFilter.cs
- HtmlInputSubmit.cs
- SizeConverter.cs
- AdPostCacheSubstitution.cs
- _BaseOverlappedAsyncResult.cs
- WebDescriptionAttribute.cs
- Help.cs
- Root.cs
- ScriptResourceAttribute.cs
- ConsumerConnectionPointCollection.cs
- UniqueIdentifierService.cs
- UIElementParaClient.cs
- ContentDisposition.cs
- ServicePoint.cs
- MessageAction.cs
- Geometry3D.cs
- GridViewHeaderRowPresenter.cs
- RegisteredScript.cs
- LocatorPart.cs
- ListDictionaryInternal.cs