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
- WebConvert.cs
- versioninfo.cs
- Viewport2DVisual3D.cs
- InheritanceAttribute.cs
- ToolStripControlHost.cs
- XmlChildEnumerator.cs
- SynchronizedRandom.cs
- BaseConfigurationRecord.cs
- ProfileGroupSettings.cs
- CalendarAutoFormatDialog.cs
- InfoCardSymmetricAlgorithm.cs
- XmlEncodedRawTextWriter.cs
- Trigger.cs
- FilteredDataSetHelper.cs
- DefaultValueAttribute.cs
- DebugView.cs
- TripleDES.cs
- X509Certificate2.cs
- ReturnValue.cs
- CodeSubDirectoriesCollection.cs
- ProviderMetadata.cs
- DefaultParameterValueAttribute.cs
- securitycriticaldataClass.cs
- RSAProtectedConfigurationProvider.cs
- DbDataAdapter.cs
- ExpressionBuilderCollection.cs
- FrugalMap.cs
- DesignerSerializationVisibilityAttribute.cs
- PrimitiveXmlSerializers.cs
- safex509handles.cs
- Figure.cs
- EntityDataSourceWrapperCollection.cs
- BitmapCodecInfo.cs
- HtmlValidatorAdapter.cs
- StyleHelper.cs
- LongMinMaxAggregationOperator.cs
- SecurityDescriptor.cs
- Floater.cs
- DomainConstraint.cs
- _Rfc2616CacheValidators.cs
- Int16AnimationBase.cs
- SqlReferenceCollection.cs
- WindowsToolbar.cs
- WebServiceMethodData.cs
- DataGridViewColumnEventArgs.cs
- ExpressionValueEditor.cs
- FontSourceCollection.cs
- EventDescriptorCollection.cs
- GridViewRow.cs
- ForeignConstraint.cs
- HyperLinkField.cs
- AstNode.cs
- odbcmetadatafactory.cs
- MultipartContentParser.cs
- XmlQueryOutput.cs
- CacheRequest.cs
- WriteTimeStream.cs
- WrappedReader.cs
- SingleSelectRootGridEntry.cs
- ProcessHostFactoryHelper.cs
- UIElement3DAutomationPeer.cs
- CacheChildrenQuery.cs
- Pkcs9Attribute.cs
- RijndaelManaged.cs
- HtmlTable.cs
- EmptyStringExpandableObjectConverter.cs
- ImageFormatConverter.cs
- Point3DValueSerializer.cs
- HMAC.cs
- TypeToken.cs
- RegexWorker.cs
- TimeSpanValidatorAttribute.cs
- ChainOfDependencies.cs
- GACMembershipCondition.cs
- ContentFilePart.cs
- FixedPosition.cs
- LabelInfo.cs
- XmlSequenceWriter.cs
- DataSourceHelper.cs
- WeakReferenceEnumerator.cs
- XmlDigitalSignatureProcessor.cs
- BaseProcessor.cs
- StylusPointDescription.cs
- DesignTimeVisibleAttribute.cs
- TransportSecurityProtocolFactory.cs
- ScrollChangedEventArgs.cs
- WindowHideOrCloseTracker.cs
- AssemblyBuilder.cs
- DataGridViewDataErrorEventArgs.cs
- SeparatorAutomationPeer.cs
- CapabilitiesSection.cs
- X509CertificateTrustedIssuerElementCollection.cs
- File.cs
- BitmapCodecInfoInternal.cs
- EventHandlerList.cs
- SafeRightsManagementEnvironmentHandle.cs
- ScriptingJsonSerializationSection.cs
- EncoderParameter.cs
- XmlSerializerOperationFormatter.cs
- FacetValueContainer.cs