Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / BasicHttpMessageSecurityElement.cs / 1 / BasicHttpMessageSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.Globalization; using System.Net; using System.Net.Security; using System.ServiceModel; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class BasicHttpMessageSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.ClientCredentialType, DefaultValue = BasicHttpMessageSecurity.DefaultClientCredentialType)] [ServiceModelEnumValidator(typeof(BasicHttpMessageCredentialTypeHelper))] public BasicHttpMessageCredentialType ClientCredentialType { get { return (BasicHttpMessageCredentialType)base[ConfigurationStrings.ClientCredentialType]; } set { base[ConfigurationStrings.ClientCredentialType] = value; } } [ConfigurationProperty(ConfigurationStrings.AlgorithmSuite, DefaultValue = ConfigurationStrings.Default)] [TypeConverter(typeof(SecurityAlgorithmSuiteConverter))] public SecurityAlgorithmSuite AlgorithmSuite { get {return (SecurityAlgorithmSuite) base[ConfigurationStrings.AlgorithmSuite]; } set {base[ConfigurationStrings.AlgorithmSuite] = value; } } internal void ApplyConfiguration(BasicHttpMessageSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.ClientCredentialType = this.ClientCredentialType; if (PropertyValueOrigin.Default != this.ElementInformation.Properties[ConfigurationStrings.AlgorithmSuite].ValueOrigin) { security.AlgorithmSuite = this.AlgorithmSuite; } } internal void InitializeFrom(BasicHttpMessageSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.ClientCredentialType = security.ClientCredentialType; this.AlgorithmSuite = security.AlgorithmSuite; } } } // 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
- documentsequencetextpointer.cs
- MonthChangedEventArgs.cs
- SignedXml.cs
- IntAverageAggregationOperator.cs
- nulltextcontainer.cs
- RouteCollection.cs
- ProviderUtil.cs
- TextStore.cs
- DataSvcMapFileSerializer.cs
- baseshape.cs
- XamlStream.cs
- ReadWriteSpinLock.cs
- ExtendedTransformFactory.cs
- DocumentGrid.cs
- InstanceDataCollection.cs
- Matrix3D.cs
- UrlMappingsModule.cs
- LowerCaseStringConverter.cs
- documentsequencetextcontainer.cs
- CompiledQuery.cs
- Compiler.cs
- ProcessModule.cs
- AttachmentCollection.cs
- MappingSource.cs
- XpsColorContext.cs
- FileUtil.cs
- SafeProcessHandle.cs
- ObjectComplexPropertyMapping.cs
- FileChangesMonitor.cs
- PublisherMembershipCondition.cs
- PermissionListSet.cs
- InfiniteTimeSpanConverter.cs
- IndependentAnimationStorage.cs
- WebUtil.cs
- TextBlockAutomationPeer.cs
- CacheEntry.cs
- DoubleLinkListEnumerator.cs
- WindowsAuthenticationModule.cs
- ImageListStreamer.cs
- AstNode.cs
- MultipleViewPattern.cs
- SqlLiftIndependentRowExpressions.cs
- Pair.cs
- UriTemplateMatch.cs
- ModelPropertyDescriptor.cs
- ExceptionUtil.cs
- TaskScheduler.cs
- WebPartConnectionsCancelEventArgs.cs
- HtmlTitle.cs
- FragmentQuery.cs
- ServicePoint.cs
- SessionStateItemCollection.cs
- NativeRecognizer.cs
- DocumentReference.cs
- Size.cs
- MdiWindowListItemConverter.cs
- userdatakeys.cs
- TypedRowGenerator.cs
- Type.cs
- PropertyValidationContext.cs
- RestClientProxyHandler.cs
- InstanceCreationEditor.cs
- DeviceContexts.cs
- AttributeExtensions.cs
- SqlTypeSystemProvider.cs
- Splitter.cs
- TypeUsage.cs
- RegexReplacement.cs
- PagedDataSource.cs
- AsymmetricKeyExchangeFormatter.cs
- Transform3DGroup.cs
- EntityDesignerDataSourceView.cs
- Formatter.cs
- Listbox.cs
- DataPagerFieldCollection.cs
- PkcsUtils.cs
- Trace.cs
- ToolStripItemBehavior.cs
- FrameDimension.cs
- SectionVisual.cs
- VoiceSynthesis.cs
- FixedPageStructure.cs
- BevelBitmapEffect.cs
- ADConnectionHelper.cs
- SurrogateEncoder.cs
- DataObject.cs
- _HeaderInfoTable.cs
- DBSqlParserColumnCollection.cs
- ExpressionVisitorHelpers.cs
- SerializationInfo.cs
- CodeGen.cs
- TypeUsageBuilder.cs
- EntityDesignPluralizationHandler.cs
- Debug.cs
- WebServiceHandlerFactory.cs
- XslTransform.cs
- Viewport3DVisual.cs
- ToolbarAUtomationPeer.cs
- _HTTPDateParse.cs
- RijndaelManagedTransform.cs