Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / HttpDigestClientCredential.cs / 1 / HttpDigestClientCredential.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.Collections.Generic; using System.ServiceModel; using System.Runtime.Serialization; using System.ServiceModel.Security; using System.Net; using System.Security.Principal; using System.ServiceModel.Security.Tokens; using System.Security.Cryptography.X509Certificates; using System.Web.Security; public sealed class HttpDigestClientCredential { TokenImpersonationLevel allowedImpersonationLevel = WindowsClientCredential.DefaultImpersonationLevel; NetworkCredential digestCredentials; bool isReadOnly; internal HttpDigestClientCredential() { this.digestCredentials = new NetworkCredential(); } internal HttpDigestClientCredential(HttpDigestClientCredential other) { this.allowedImpersonationLevel = other.allowedImpersonationLevel; this.digestCredentials = SecurityUtils.GetNetworkCredentialsCopy(other.digestCredentials); this.isReadOnly = other.isReadOnly; } public TokenImpersonationLevel AllowedImpersonationLevel { get { return this.allowedImpersonationLevel; } set { ThrowIfImmutable(); this.allowedImpersonationLevel = value; } } public NetworkCredential ClientCredential { get { return this.digestCredentials; } set { ThrowIfImmutable(); this.digestCredentials = value; } } internal void MakeReadOnly() { this.isReadOnly = true; } void ThrowIfImmutable() { if (this.isReadOnly) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); } } } } // 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
- HttpDebugHandler.cs
- TextDecorationCollection.cs
- SqlEnums.cs
- Sequence.cs
- VersionedStream.cs
- KeysConverter.cs
- WebServiceEnumData.cs
- OpenTypeMethods.cs
- ProxyHelper.cs
- PeerUnsafeNativeMethods.cs
- Button.cs
- ComplusEndpointConfigContainer.cs
- TextOptions.cs
- HiddenFieldPageStatePersister.cs
- HttpCookie.cs
- HelpEvent.cs
- SQLSingle.cs
- BamlRecordWriter.cs
- ScrollViewerAutomationPeer.cs
- ProcessModelSection.cs
- Rotation3DKeyFrameCollection.cs
- WsdlBuildProvider.cs
- SkinBuilder.cs
- ServiceOperationParameter.cs
- CommonGetThemePartSize.cs
- CryptoStream.cs
- FixedHyperLink.cs
- ActivationServices.cs
- TrackingDataItem.cs
- TransformedBitmap.cs
- CompositeControl.cs
- Currency.cs
- XmlReader.cs
- AppLevelCompilationSectionCache.cs
- SqlProcedureAttribute.cs
- _Rfc2616CacheValidators.cs
- ZoneLinkButton.cs
- relpropertyhelper.cs
- PriorityBinding.cs
- QuaternionAnimationUsingKeyFrames.cs
- InputProcessorProfilesLoader.cs
- CodeAttributeArgument.cs
- StrokeFIndices.cs
- SamlSubject.cs
- CollectionChangeEventArgs.cs
- SecurityDescriptor.cs
- MenuItemBindingCollection.cs
- Action.cs
- HtmlTableRowCollection.cs
- AttributeCollection.cs
- RegionData.cs
- SiteMap.cs
- DataGridViewComboBoxCell.cs
- OrderPreservingPipeliningMergeHelper.cs
- HwndStylusInputProvider.cs
- EntityDataSourceContainerNameConverter.cs
- CopyOfAction.cs
- BeginEvent.cs
- RangeBaseAutomationPeer.cs
- SerialReceived.cs
- SlotInfo.cs
- ScriptingProfileServiceSection.cs
- Connector.cs
- MemberNameValidator.cs
- Object.cs
- EntryPointNotFoundException.cs
- Application.cs
- DateTimeParse.cs
- ComplexTypeEmitter.cs
- IOThreadScheduler.cs
- SingleResultAttribute.cs
- XmlEntity.cs
- Tile.cs
- FileClassifier.cs
- EdmFunction.cs
- XPathEmptyIterator.cs
- RichTextBoxAutomationPeer.cs
- XmlWriterTraceListener.cs
- LinqDataSourceInsertEventArgs.cs
- PageTrueTypeFont.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CryptoKeySecurity.cs
- SoapCodeExporter.cs
- MatrixStack.cs
- PersonalizationStateInfo.cs
- GZipStream.cs
- TypeDescriptionProviderAttribute.cs
- TraversalRequest.cs
- SystemUdpStatistics.cs
- TitleStyle.cs
- List.cs
- StreamInfo.cs
- X509Certificate2Collection.cs
- ErrorProvider.cs
- Helpers.cs
- PerformanceCounterPermission.cs
- EventLog.cs
- TextFormatterHost.cs
- RenderContext.cs
- AuthorizationPolicyTypeElementCollection.cs