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
- DesignerCalendarAdapter.cs
- AppDomainManager.cs
- StorageMappingItemCollection.cs
- BaseTemplateParser.cs
- KoreanLunisolarCalendar.cs
- HttpListener.cs
- SystemGatewayIPAddressInformation.cs
- WebUtil.cs
- sortedlist.cs
- GlobalProxySelection.cs
- ComPersistableTypeElementCollection.cs
- SQLString.cs
- ElementHostPropertyMap.cs
- PackageRelationshipCollection.cs
- WindowsFormsHelpers.cs
- VariantWrapper.cs
- ObjectCloneHelper.cs
- Line.cs
- ThreadExceptionDialog.cs
- ToolBarTray.cs
- AssemblyCache.cs
- Input.cs
- DataGridViewRowStateChangedEventArgs.cs
- LinkedList.cs
- OleDbMetaDataFactory.cs
- RenderCapability.cs
- UidManager.cs
- BaseCAMarshaler.cs
- SettingsAttributeDictionary.cs
- FormatControl.cs
- DynamicILGenerator.cs
- ConstraintConverter.cs
- InvokeGenerator.cs
- TextServicesLoader.cs
- XPathEmptyIterator.cs
- CompiledRegexRunnerFactory.cs
- EnvelopedSignatureTransform.cs
- ConfigXmlWhitespace.cs
- DataGridCell.cs
- BitmapEffect.cs
- BaseDataList.cs
- ScrollEvent.cs
- HttpModulesSection.cs
- XmlSchemaAttributeGroup.cs
- CodeRegionDirective.cs
- XmlCodeExporter.cs
- EncodingDataItem.cs
- InternalUserCancelledException.cs
- NamespaceDecl.cs
- DeploymentSection.cs
- JsonClassDataContract.cs
- GridSplitter.cs
- XPathNodeList.cs
- Helpers.cs
- ActionFrame.cs
- SchemaNotation.cs
- CodeExporter.cs
- DesignerSerializationVisibilityAttribute.cs
- TransformerTypeCollection.cs
- HebrewNumber.cs
- ExtenderControl.cs
- Image.cs
- XmlILConstructAnalyzer.cs
- ExpandCollapseProviderWrapper.cs
- unsafeIndexingFilterStream.cs
- SHA1Managed.cs
- Int32KeyFrameCollection.cs
- TreeViewImageIndexConverter.cs
- RequestSecurityTokenResponseCollection.cs
- cookie.cs
- Expression.cs
- RichTextBox.cs
- SHA384Managed.cs
- EventLogStatus.cs
- BamlWriter.cs
- DbDataReader.cs
- NativeMethods.cs
- ToolboxItem.cs
- MarkupExtensionParser.cs
- InterleavedZipPartStream.cs
- PersistenceTypeAttribute.cs
- XmlAggregates.cs
- StorageScalarPropertyMapping.cs
- FontNamesConverter.cs
- TemplateControlParser.cs
- SqlSelectStatement.cs
- NonParentingControl.cs
- CompilationUtil.cs
- ComponentGlyph.cs
- BooleanStorage.cs
- MultipleViewPattern.cs
- EventLogPermissionEntry.cs
- PictureBox.cs
- InfoCardSymmetricAlgorithm.cs
- ProbeDuplex11AsyncResult.cs
- OletxDependentTransaction.cs
- HyperLinkStyle.cs
- TextDecorationLocationValidation.cs
- ISFClipboardData.cs
- TypeSystem.cs