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
- Cursor.cs
- StaticFileHandler.cs
- PatternMatchRules.cs
- ProviderManager.cs
- SpotLight.cs
- InfoCardMasterKey.cs
- UpdateProgress.cs
- _emptywebproxy.cs
- XPathItem.cs
- ViewGenResults.cs
- JavaScriptObjectDeserializer.cs
- Geometry3D.cs
- EnumValAlphaComparer.cs
- ParameterInfo.cs
- Helpers.cs
- AliasGenerator.cs
- TextPenaltyModule.cs
- XmlSchemaSimpleTypeRestriction.cs
- WebPartVerb.cs
- PenLineJoinValidation.cs
- SiteMapNodeCollection.cs
- XmlSchemaRedefine.cs
- DrawingImage.cs
- ReadOnlyDictionary.cs
- CallSiteBinder.cs
- DbMetaDataColumnNames.cs
- ObjectStateEntry.cs
- FlowDocumentPaginator.cs
- PopupEventArgs.cs
- ISFTagAndGuidCache.cs
- HttpResponseWrapper.cs
- XamlGridLengthSerializer.cs
- DBBindings.cs
- HttpProfileBase.cs
- PreviewPageInfo.cs
- ProcessModelSection.cs
- TextDecorationUnitValidation.cs
- ExpressionWriter.cs
- SectionVisual.cs
- ObjectSet.cs
- _AuthenticationState.cs
- CapabilitiesState.cs
- DebugInfoExpression.cs
- XamlReaderHelper.cs
- FormattedText.cs
- QueryOptionExpression.cs
- ComponentResourceManager.cs
- WebPartHeaderCloseVerb.cs
- SqlWriter.cs
- AdPostCacheSubstitution.cs
- DocumentSequenceHighlightLayer.cs
- PathSegment.cs
- EnumerableCollectionView.cs
- DataGridBoolColumn.cs
- XXXOnTypeBuilderInstantiation.cs
- PrinterUnitConvert.cs
- XmlWriterSettings.cs
- GridViewRow.cs
- DataKeyCollection.cs
- AdapterUtil.cs
- PathGeometry.cs
- URLMembershipCondition.cs
- EntityDataSourceView.cs
- ResourceDescriptionAttribute.cs
- DataSysAttribute.cs
- GacUtil.cs
- ConfigurationLocationCollection.cs
- IPCCacheManager.cs
- EntityDataSourceColumn.cs
- FixedTextView.cs
- AddingNewEventArgs.cs
- PersistenceTypeAttribute.cs
- DocumentPageViewAutomationPeer.cs
- BulletChrome.cs
- ActiveXSite.cs
- Inflater.cs
- Int64AnimationUsingKeyFrames.cs
- FormViewPagerRow.cs
- ProjectedSlot.cs
- WebPartEditorOkVerb.cs
- webbrowsersite.cs
- TreePrinter.cs
- ServerValidateEventArgs.cs
- TransferRequestHandler.cs
- basevalidator.cs
- LocationReferenceEnvironment.cs
- ManagementScope.cs
- newinstructionaction.cs
- WindowsContainer.cs
- UInt64.cs
- EUCJPEncoding.cs
- RegexBoyerMoore.cs
- NodeLabelEditEvent.cs
- MimeWriter.cs
- _FixedSizeReader.cs
- Html32TextWriter.cs
- ObjectViewListener.cs
- TableLayoutSettings.cs
- FileNotFoundException.cs
- PerfCounters.cs