Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / UserNamePasswordClientCredential.cs / 1 / UserNamePasswordClientCredential.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.Net; using System.Security.Principal; using System.ServiceModel.Security.Tokens; using System.Security.Cryptography.X509Certificates; using System.Web.Security; public sealed class UserNamePasswordClientCredential { string userName; string password; bool isReadOnly; internal UserNamePasswordClientCredential() { // empty } internal UserNamePasswordClientCredential(UserNamePasswordClientCredential other) { this.userName = other.userName; this.password = other.password; this.isReadOnly = other.isReadOnly; } public string UserName { get { return this.userName; } set { ThrowIfImmutable(); this.userName = value; } } public string Password { get { return this.password; } set { ThrowIfImmutable(); this.password = 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
- CommonObjectSecurity.cs
- AllMembershipCondition.cs
- ConfigurationManagerInternalFactory.cs
- CompiledRegexRunnerFactory.cs
- TCPClient.cs
- TimeSpanValidatorAttribute.cs
- ThemeDirectoryCompiler.cs
- dataprotectionpermission.cs
- SQLInt16.cs
- ImageInfo.cs
- MD5Cng.cs
- SchemaUtility.cs
- TransformerInfo.cs
- MouseGestureConverter.cs
- DataGridViewSelectedRowCollection.cs
- BamlTreeUpdater.cs
- Utils.cs
- SchemaNotation.cs
- listitem.cs
- TextServicesCompartmentEventSink.cs
- TextFormatterHost.cs
- GeometryModel3D.cs
- ScriptResourceAttribute.cs
- VirtualDirectoryMappingCollection.cs
- ListBoxItemAutomationPeer.cs
- ModuleBuilderData.cs
- UpdatePanel.cs
- ConnectivityStatus.cs
- ToolStripButton.cs
- TextTreeExtractElementUndoUnit.cs
- GlobalizationSection.cs
- GlobalProxySelection.cs
- DnsCache.cs
- Assert.cs
- SettingsSection.cs
- StateWorkerRequest.cs
- MethodRental.cs
- Unit.cs
- DataBoundControlAdapter.cs
- ImportStoreException.cs
- IntSecurity.cs
- TextFormatter.cs
- WorkflowExecutor.cs
- SqlStatistics.cs
- RootProjectionNode.cs
- Columns.cs
- CustomErrorsSection.cs
- Pts.cs
- BlurEffect.cs
- IntSecurity.cs
- XsltCompileContext.cs
- ProvidePropertyAttribute.cs
- AnnotationComponentManager.cs
- Decorator.cs
- ExtensionWindowResizeGrip.cs
- SQlBooleanStorage.cs
- ScrollBarRenderer.cs
- SizeChangedEventArgs.cs
- ExpressionVisitor.cs
- DbConnectionPoolOptions.cs
- ProxyAttribute.cs
- AutomationTextAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- LineSegment.cs
- XmlBoundElement.cs
- MachineSettingsSection.cs
- CommonGetThemePartSize.cs
- ChtmlTextBoxAdapter.cs
- OAVariantLib.cs
- EventListener.cs
- XmlSerializerAssemblyAttribute.cs
- AssemblyResourceLoader.cs
- dsa.cs
- ParsedRoute.cs
- SmiMetaData.cs
- FastPropertyAccessor.cs
- WindowsIdentity.cs
- ButtonChrome.cs
- Evaluator.cs
- CalendarItem.cs
- TableItemPatternIdentifiers.cs
- SystemIPv6InterfaceProperties.cs
- AppSettingsExpressionBuilder.cs
- AssemblyInfo.cs
- AVElementHelper.cs
- CustomError.cs
- RegexGroup.cs
- Renderer.cs
- Geometry3D.cs
- xdrvalidator.cs
- ListViewSelectEventArgs.cs
- AutomationElementIdentifiers.cs
- Events.cs
- DesignBindingPropertyDescriptor.cs
- XmlSchemaSet.cs
- Attributes.cs
- EndOfStreamException.cs
- SizeF.cs
- UpdateEventArgs.cs
- QilPatternFactory.cs