Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SspiNegotiationTokenProviderState.cs / 1 / SspiNegotiationTokenProviderState.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Claims; using System.ServiceModel; using System.IdentityModel.Policy; using System.Security.Principal; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Collections.Generic; using System.ServiceModel.Channels; using System.Net; using System.Diagnostics; class SspiNegotiationTokenProviderState : IssuanceTokenProviderState { ISspiNegotiation sspiNegotiation; HashAlgorithm negotiationDigest; public SspiNegotiationTokenProviderState(ISspiNegotiation sspiNegotiation) : base() { if (sspiNegotiation == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sspiNegotiation"); } this.sspiNegotiation = sspiNegotiation; this.negotiationDigest = CryptoHelper.NewSha1HashAlgorithm(); } public ISspiNegotiation SspiNegotiation { get { return this.sspiNegotiation; } } internal HashAlgorithm NegotiationDigest { get { return this.negotiationDigest; } } public override void Dispose() { try { if (this.sspiNegotiation != null) { this.sspiNegotiation.Dispose(); this.sspiNegotiation = null; ((IDisposable)this.negotiationDigest).Dispose(); this.negotiationDigest = null; } } finally { base.Dispose(); } } } } // 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
- LiteralSubsegment.cs
- XomlSerializationHelpers.cs
- TypeLoader.cs
- IBuiltInEvidence.cs
- mda.cs
- ImportCatalogPart.cs
- SchemaImporterExtensionsSection.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- StreamReader.cs
- ProfileService.cs
- WebContext.cs
- DataGridViewRowPrePaintEventArgs.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ForeignKeyConstraint.cs
- QueryableFilterUserControl.cs
- WebConfigurationManager.cs
- FileSecurity.cs
- SocketElement.cs
- SubMenuStyleCollection.cs
- PreloadHost.cs
- Stopwatch.cs
- FixedPage.cs
- ADMembershipProvider.cs
- ChildrenQuery.cs
- PolicyValidator.cs
- FixedPageAutomationPeer.cs
- ToolConsole.cs
- ManipulationDeltaEventArgs.cs
- StringReader.cs
- XPathEmptyIterator.cs
- ItemsControl.cs
- COM2ExtendedBrowsingHandler.cs
- TextEditorTables.cs
- PositiveTimeSpanValidatorAttribute.cs
- Parser.cs
- ToolStripOverflow.cs
- DataControlPagerLinkButton.cs
- JsonByteArrayDataContract.cs
- ObjectDataSourceStatusEventArgs.cs
- RootBrowserWindow.cs
- XmlWriterTraceListener.cs
- TextPointer.cs
- SerializationBinder.cs
- SerialStream.cs
- StringAnimationUsingKeyFrames.cs
- Matrix.cs
- ActivityExecutorOperation.cs
- DataConnectionHelper.cs
- IdentityNotMappedException.cs
- SerialReceived.cs
- PrimitiveDataContract.cs
- WindowsClientCredential.cs
- Effect.cs
- activationcontext.cs
- Size.cs
- WebPartTracker.cs
- Rijndael.cs
- SmiEventSink_Default.cs
- Int16.cs
- WriteableOnDemandStream.cs
- OrderedDictionary.cs
- BufferModesCollection.cs
- ScrollData.cs
- LocalFileSettingsProvider.cs
- StoreItemCollection.cs
- OpenTypeCommon.cs
- Directory.cs
- AudioStateChangedEventArgs.cs
- PriorityQueue.cs
- TrustLevelCollection.cs
- TextEncodedRawTextWriter.cs
- MimeBasePart.cs
- DbgUtil.cs
- ToolStripPanelRow.cs
- ErrorRuntimeConfig.cs
- ITextView.cs
- COM2PictureConverter.cs
- PolicyLevel.cs
- RequestCachePolicyConverter.cs
- FtpWebRequest.cs
- CompiledAction.cs
- PasswordBoxAutomationPeer.cs
- ToolBarButtonClickEvent.cs
- AuthenticationModuleElementCollection.cs
- InputLanguageCollection.cs
- ProfileService.cs
- ComponentConverter.cs
- ApplicationInfo.cs
- GeometryCombineModeValidation.cs
- TcpHostedTransportConfiguration.cs
- Pkcs9Attribute.cs
- LicenseContext.cs
- PenLineCapValidation.cs
- InkPresenterAutomationPeer.cs
- PolyBezierSegment.cs
- WindowsToolbarAsMenu.cs
- ElementHostAutomationPeer.cs
- ObjectNavigationPropertyMapping.cs
- AlignmentXValidation.cs
- ExceptionTranslationTable.cs