Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / SecurityCapabilities.cs / 1 / SecurityCapabilities.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Net.Security; class SecurityCapabilities : ISecurityCapabilities { internal bool supportsServerAuth; internal bool supportsClientAuth; internal bool supportsClientWindowsIdentity; internal ProtectionLevel requestProtectionLevel; internal ProtectionLevel responseProtectionLevel; public SecurityCapabilities(bool supportsClientAuth, bool supportsServerAuth, bool supportsClientWindowsIdentity, ProtectionLevel requestProtectionLevel, ProtectionLevel responseProtectionLevel) { this.supportsClientAuth = supportsClientAuth; this.supportsServerAuth = supportsServerAuth; this.supportsClientWindowsIdentity = supportsClientWindowsIdentity; this.requestProtectionLevel = requestProtectionLevel; this.responseProtectionLevel = responseProtectionLevel; } public ProtectionLevel SupportedRequestProtectionLevel { get { return requestProtectionLevel; } } public ProtectionLevel SupportedResponseProtectionLevel { get { return responseProtectionLevel; } } public bool SupportsClientAuthentication { get { return supportsClientAuth; } } public bool SupportsClientWindowsIdentity { get { return supportsClientWindowsIdentity; } } public bool SupportsServerAuthentication { get { return supportsServerAuth; } } static SecurityCapabilities None { get { return new SecurityCapabilities(false, false, false, ProtectionLevel.None, ProtectionLevel.None); } } internal static bool IsEqual(ISecurityCapabilities capabilities1, ISecurityCapabilities capabilities2) { if (capabilities1 == null) { capabilities1 = SecurityCapabilities.None; } if (capabilities2 == null) { capabilities2 = SecurityCapabilities.None; } if (capabilities1.SupportedRequestProtectionLevel != capabilities2.SupportedRequestProtectionLevel) { return false; } if (capabilities1.SupportedResponseProtectionLevel != capabilities2.SupportedResponseProtectionLevel) { return false; } if (capabilities1.SupportsClientAuthentication != capabilities2.SupportsClientAuthentication) { return false; } if (capabilities1.SupportsClientWindowsIdentity != capabilities2.SupportsClientWindowsIdentity) { return false; } if (capabilities1.SupportsServerAuthentication != capabilities2.SupportsServerAuthentication) { return false; } return true; } } } // 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
- SingleStorage.cs
- UrlRoutingHandler.cs
- ManualResetEvent.cs
- DataPointer.cs
- OAVariantLib.cs
- XmlHierarchicalDataSourceView.cs
- XMLUtil.cs
- RemotingClientProxy.cs
- Path.cs
- Frame.cs
- ImplicitInputBrush.cs
- SelectionListDesigner.cs
- DataGridViewRowPostPaintEventArgs.cs
- Geometry3D.cs
- Object.cs
- TextRenderer.cs
- ProcessHostMapPath.cs
- RuntimeResourceSet.cs
- ToolStripRendererSwitcher.cs
- OutputWindow.cs
- DataBoundControlActionList.cs
- StateDesigner.Layouts.cs
- WindowsScrollBar.cs
- RegexBoyerMoore.cs
- AppDomainProtocolHandler.cs
- Vector3DAnimation.cs
- TextLineBreak.cs
- AppearanceEditorPart.cs
- MenuItemAutomationPeer.cs
- Rights.cs
- XmlLinkedNode.cs
- ReceiveContent.cs
- ExpressionConverter.cs
- ManualResetEvent.cs
- OracleInfoMessageEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- NamedPipeTransportSecurity.cs
- DataColumnPropertyDescriptor.cs
- AuthenticationServiceManager.cs
- DataGridLinkButton.cs
- RewritingProcessor.cs
- UnsafeNativeMethods.cs
- JsonGlobals.cs
- DocumentViewerBaseAutomationPeer.cs
- SafeBitVector32.cs
- NotifyParentPropertyAttribute.cs
- TreeIterator.cs
- XamlHostingSectionGroup.cs
- PathGradientBrush.cs
- QilPatternFactory.cs
- PagedDataSource.cs
- OperationInfo.cs
- SqlDeflator.cs
- XhtmlBasicSelectionListAdapter.cs
- MultiBindingExpression.cs
- BitmapInitialize.cs
- _CookieModule.cs
- SqlNodeAnnotations.cs
- DataGridViewHeaderCell.cs
- DSASignatureDeformatter.cs
- COM2TypeInfoProcessor.cs
- ConnectionsZone.cs
- HttpClientCertificate.cs
- FileSystemWatcher.cs
- DataBindingList.cs
- DataSvcMapFileSerializer.cs
- NoneExcludedImageIndexConverter.cs
- DecimalFormatter.cs
- HexParser.cs
- ValuePattern.cs
- Pens.cs
- NotImplementedException.cs
- ByteStack.cs
- ListViewCancelEventArgs.cs
- SQLDouble.cs
- _FixedSizeReader.cs
- DelayDesigner.cs
- SqlExpander.cs
- _UncName.cs
- StatementContext.cs
- ClockGroup.cs
- TemplateControlCodeDomTreeGenerator.cs
- Composition.cs
- ThreadExceptionDialog.cs
- TopClause.cs
- CachedTypeface.cs
- DataPagerFieldCollection.cs
- DesigntimeLicenseContext.cs
- StreamingContext.cs
- AmbientEnvironment.cs
- ErrorWebPart.cs
- CollectionView.cs
- TableParaClient.cs
- CounterSetInstance.cs
- DictionaryTraceRecord.cs
- SoapIncludeAttribute.cs
- DataGridCheckBoxColumn.cs
- DataServiceQueryOfT.cs
- ObjectItemAttributeAssemblyLoader.cs
- KeyboardNavigation.cs