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
- TextInfo.cs
- _LocalDataStore.cs
- CodeGen.cs
- UpdateTranslator.cs
- PropertyGridEditorPart.cs
- SuppressMessageAttribute.cs
- TransactionOptions.cs
- Int64.cs
- Process.cs
- Image.cs
- StrokeNodeOperations.cs
- EntityDataSourceDataSelectionPanel.cs
- QueryCacheEntry.cs
- HttpResponse.cs
- HashUtility.cs
- PropertyPushdownHelper.cs
- CodeComment.cs
- XmlILStorageConverter.cs
- EntityTypeEmitter.cs
- RuleConditionDialog.Designer.cs
- ThreadLocal.cs
- ClientScriptItemCollection.cs
- DynamicILGenerator.cs
- ByteFacetDescriptionElement.cs
- WebPartCancelEventArgs.cs
- NamespaceCollection.cs
- AnnotationHighlightLayer.cs
- OdbcConnectionString.cs
- ReadWriteObjectLock.cs
- ColorConvertedBitmap.cs
- SqlTriggerAttribute.cs
- AppDomainUnloadedException.cs
- BuilderElements.cs
- SQLGuidStorage.cs
- ChannelTerminatedException.cs
- StylusPoint.cs
- EntityDataSourceContainerNameConverter.cs
- ParserStack.cs
- SortDescription.cs
- StatusBarPanel.cs
- SafeLibraryHandle.cs
- ValidationError.cs
- ByeOperationAsyncResult.cs
- ListViewItemEventArgs.cs
- RoutedEventArgs.cs
- MetadataUtil.cs
- GlyphsSerializer.cs
- LinkedResource.cs
- LockRecursionException.cs
- ProfileSection.cs
- AsyncResult.cs
- SiteOfOriginContainer.cs
- CertificateManager.cs
- xmlfixedPageInfo.cs
- XmlUnspecifiedAttribute.cs
- ConnectionConsumerAttribute.cs
- PointLightBase.cs
- GridViewCellAutomationPeer.cs
- StorageSetMapping.cs
- ResourceSet.cs
- Currency.cs
- WindowsGraphics.cs
- MeasureItemEvent.cs
- TypeBuilder.cs
- SqlConnectionString.cs
- EllipseGeometry.cs
- XmlSerializerNamespaces.cs
- InfocardExtendedInformationEntry.cs
- DataGridViewCellStyleConverter.cs
- Manipulation.cs
- TextCompositionEventArgs.cs
- WebPartManagerInternals.cs
- SystemColorTracker.cs
- NavigationFailedEventArgs.cs
- FormattedTextSymbols.cs
- RijndaelManaged.cs
- TokenBasedSetEnumerator.cs
- SqlDataSourceView.cs
- TextTreeInsertElementUndoUnit.cs
- x509store.cs
- PersonalizationAdministration.cs
- BackoffTimeoutHelper.cs
- TrackingMemoryStream.cs
- DnsCache.cs
- RepeaterItem.cs
- Barrier.cs
- AccessKeyManager.cs
- SqlCachedBuffer.cs
- ExceptionUtil.cs
- SymLanguageType.cs
- GeometryGroup.cs
- serverconfig.cs
- File.cs
- UniqueID.cs
- CheckBox.cs
- CheckPair.cs
- SmiRequestExecutor.cs
- EditCommandColumn.cs
- FormClosedEvent.cs
- StorageMappingItemLoader.cs