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
- bindurihelper.cs
- NamespaceList.cs
- ValidatorCompatibilityHelper.cs
- Point4DValueSerializer.cs
- NullableDoubleMinMaxAggregationOperator.cs
- Metafile.cs
- HttpApplicationStateBase.cs
- ByteAnimationBase.cs
- COM2ExtendedUITypeEditor.cs
- XmlSchemaSequence.cs
- GridViewPageEventArgs.cs
- Lasso.cs
- ScriptingProfileServiceSection.cs
- XDeferredAxisSource.cs
- controlskin.cs
- PropertyOverridesTypeEditor.cs
- CodeStatementCollection.cs
- MobileContainerDesigner.cs
- SemaphoreSecurity.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ManifestResourceInfo.cs
- ConnectionOrientedTransportChannelFactory.cs
- ContractHandle.cs
- iisPickupDirectory.cs
- Visual.cs
- HttpClientCertificate.cs
- Int32AnimationBase.cs
- Attachment.cs
- StaticResourceExtension.cs
- Schema.cs
- ConfigurationStrings.cs
- LogManagementAsyncResult.cs
- QueryStringParameter.cs
- WebPartMinimizeVerb.cs
- SqlClientMetaDataCollectionNames.cs
- DebugHandleTracker.cs
- MD5.cs
- Utils.cs
- ControlCachePolicy.cs
- WindowsListViewScroll.cs
- SimpleTypeResolver.cs
- CreateUserWizard.cs
- PrinterUnitConvert.cs
- ParserContext.cs
- CursorInteropHelper.cs
- DataGridColumnCollectionEditor.cs
- ListItemCollection.cs
- WebColorConverter.cs
- ControllableStoryboardAction.cs
- SafeNativeMethods.cs
- SecurityHelper.cs
- ManualResetEvent.cs
- SQLDecimalStorage.cs
- DrawingContextWalker.cs
- FaultHandlingFilter.cs
- RunClient.cs
- GifBitmapDecoder.cs
- RuleSettingsCollection.cs
- SoapRpcMethodAttribute.cs
- IssuanceLicense.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- HwndMouseInputProvider.cs
- WebBrowserUriTypeConverter.cs
- PropertyGridEditorPart.cs
- CompModSwitches.cs
- CompressEmulationStream.cs
- ConfigurationValidatorAttribute.cs
- StreamReader.cs
- UnaryNode.cs
- DirectionalLight.cs
- WizardForm.cs
- TargetPerspective.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XmlMemberMapping.cs
- CodeTypeConstructor.cs
- XmlDeclaration.cs
- ConstraintStruct.cs
- Expressions.cs
- LowerCaseStringConverter.cs
- DecimalConstantAttribute.cs
- SqlDataReaderSmi.cs
- Drawing.cs
- Path.cs
- LicenseProviderAttribute.cs
- D3DImage.cs
- LongValidator.cs
- DynamicFilterExpression.cs
- WeakReferenceKey.cs
- CodeTypeDeclarationCollection.cs
- ReadWriteControlDesigner.cs
- ResourceProperty.cs
- StringValidator.cs
- CodeAccessPermission.cs
- DataBindingExpressionBuilder.cs
- CompositionCommandSet.cs
- DirectionalLight.cs
- UserControlBuildProvider.cs
- StreamGeometryContext.cs
- SHA1CryptoServiceProvider.cs
- TraceListeners.cs