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
- NonBatchDirectoryCompiler.cs
- WebEncodingValidatorAttribute.cs
- CompositeControl.cs
- Parameter.cs
- IDReferencePropertyAttribute.cs
- FixedTextBuilder.cs
- BuildResultCache.cs
- FileUpload.cs
- HandleCollector.cs
- XmlSchemaAttributeGroupRef.cs
- PrefixQName.cs
- TypedReference.cs
- CLRBindingWorker.cs
- HtmlTableCell.cs
- InstanceCompleteException.cs
- RegexWorker.cs
- EventData.cs
- Camera.cs
- DependencyObjectType.cs
- FieldTemplateFactory.cs
- SimpleFieldTemplateUserControl.cs
- SpAudioStreamWrapper.cs
- WindowsEditBox.cs
- MailMessageEventArgs.cs
- ContentAlignmentEditor.cs
- BulletedList.cs
- SourceItem.cs
- MatrixAnimationUsingPath.cs
- OracleBoolean.cs
- TdsParserStaticMethods.cs
- XamlReader.cs
- Rect3DConverter.cs
- PrintPreviewDialog.cs
- BamlTreeMap.cs
- Event.cs
- ParserStack.cs
- BoundPropertyEntry.cs
- FileSystemEventArgs.cs
- SqlConnectionFactory.cs
- WindowPatternIdentifiers.cs
- ObjectViewListener.cs
- UrlPropertyAttribute.cs
- AbsoluteQuery.cs
- SafeCryptContextHandle.cs
- RawStylusActions.cs
- DbException.cs
- TextEncodedRawTextWriter.cs
- ObjectReaderCompiler.cs
- transactioncontext.cs
- ServiceDescription.cs
- XmlSchemaAttributeGroupRef.cs
- ZipIOLocalFileBlock.cs
- PersistenceException.cs
- Variable.cs
- XmlRootAttribute.cs
- WmlPhoneCallAdapter.cs
- WebAdminConfigurationHelper.cs
- Geometry3D.cs
- TextFormattingConverter.cs
- WebPartDisplayModeCancelEventArgs.cs
- SqlStream.cs
- PagePropertiesChangingEventArgs.cs
- Resources.Designer.cs
- PackageRelationshipCollection.cs
- AndAlso.cs
- SqlDependency.cs
- ParserContext.cs
- WebPartZoneBase.cs
- WindowsFont.cs
- BadImageFormatException.cs
- ConversionHelper.cs
- AudioException.cs
- TypeDelegator.cs
- _CookieModule.cs
- LogManagementAsyncResult.cs
- HttpConfigurationContext.cs
- ProcessHostMapPath.cs
- DocumentSchemaValidator.cs
- ArgumentNullException.cs
- PartialTrustVisibleAssembliesSection.cs
- HttpServerVarsCollection.cs
- storepermissionattribute.cs
- RepeatEnumerable.cs
- CallContext.cs
- ListViewUpdateEventArgs.cs
- DispatcherProcessingDisabled.cs
- SafeLibraryHandle.cs
- SoapHeaderException.cs
- UnmanagedMarshal.cs
- recordstatescratchpad.cs
- ThaiBuddhistCalendar.cs
- PaginationProgressEventArgs.cs
- Parameter.cs
- DbExpressionVisitor_TResultType.cs
- Pointer.cs
- DependencyObjectPropertyDescriptor.cs
- SoapHeaderException.cs
- Pair.cs
- VisualTreeFlattener.cs
- RelationshipDetailsRow.cs