Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / KeyNameIdentifierClause.cs / 1 / KeyNameIdentifierClause.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.Globalization; using System.ServiceModel; using System.IdentityModel.Tokens; public class KeyNameIdentifierClause : SecurityKeyIdentifierClause { string keyName; public KeyNameIdentifierClause(string keyName) : base(null) { if (keyName == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("keyName"); } this.keyName = keyName; } public string KeyName { get { return this.keyName; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { KeyNameIdentifierClause that = keyIdentifierClause as KeyNameIdentifierClause; // PreSharp Bug: Parameter 'that' to this public method must be validated: A null-dereference can occur here. #pragma warning suppress 56506 return ReferenceEquals(this, that) || (that != null && that.Matches(this.keyName)); } public bool Matches(string keyName) { return this.keyName == keyName; } public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "KeyNameIdentifierClause(KeyName = '{0}')", this.KeyName); } } } // 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
- ObjectDataSourceDesigner.cs
- BuildProvider.cs
- ResourceExpressionEditor.cs
- HtmlContainerControl.cs
- SourceSwitch.cs
- BaseCAMarshaler.cs
- Missing.cs
- SiteMapNodeCollection.cs
- CultureInfoConverter.cs
- PrintPageEvent.cs
- TypeConstant.cs
- WasHostedComPlusFactory.cs
- MatrixTransform3D.cs
- CalendarDataBindingHandler.cs
- AsymmetricKeyExchangeFormatter.cs
- ClientConfigPaths.cs
- GPPOINTF.cs
- TrustManagerMoreInformation.cs
- Transform3DGroup.cs
- CompositeFontParser.cs
- DependencyPropertyHelper.cs
- DropDownHolder.cs
- TextSpan.cs
- CodeGroup.cs
- ASCIIEncoding.cs
- TemplateParser.cs
- PersonalizationProviderCollection.cs
- ExtensionQuery.cs
- CodeTypeDeclarationCollection.cs
- ImageMetadata.cs
- Point3DCollection.cs
- EventProxy.cs
- LongValidatorAttribute.cs
- PropertyTab.cs
- IPipelineRuntime.cs
- cookieexception.cs
- ParenthesizePropertyNameAttribute.cs
- ToolboxDataAttribute.cs
- DependencyPropertyDescriptor.cs
- CopyAttributesAction.cs
- ExpressionCopier.cs
- CompositeCollectionView.cs
- SubtreeProcessor.cs
- ProcessHostFactoryHelper.cs
- Material.cs
- LinkedResource.cs
- _UriTypeConverter.cs
- XPathDocumentNavigator.cs
- PathSegmentCollection.cs
- WorkflowRuntimeService.cs
- SelectedDatesCollection.cs
- XmlILTrace.cs
- BinaryEditor.cs
- ManipulationPivot.cs
- ISO2022Encoding.cs
- StylusEditingBehavior.cs
- ObjectDataSourceChooseMethodsPanel.cs
- peersecurityelement.cs
- CompleteWizardStep.cs
- DataControlLinkButton.cs
- XmlValidatingReader.cs
- DbDataSourceEnumerator.cs
- BamlVersionHeader.cs
- DesignConnectionCollection.cs
- InstanceStoreQueryResult.cs
- ComplexTypeEmitter.cs
- ManagementBaseObject.cs
- DoubleLinkList.cs
- EmbossBitmapEffect.cs
- EntityContainerEmitter.cs
- SessionEndingCancelEventArgs.cs
- CodeParameterDeclarationExpression.cs
- TreeNodeStyle.cs
- LogLogRecord.cs
- Label.cs
- XmlSchemaSimpleContent.cs
- MemberDomainMap.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- EpmSourcePathSegment.cs
- ToolStripDropDownItem.cs
- PackagePartCollection.cs
- MappingItemCollection.cs
- PnrpPeerResolverElement.cs
- ListViewSelectEventArgs.cs
- StringBlob.cs
- CurrencyManager.cs
- DashStyle.cs
- CopyOfAction.cs
- HtmlInputFile.cs
- InvalidCardException.cs
- PropertyCondition.cs
- ConfigurationErrorsException.cs
- SecurityHeader.cs
- ControlIdConverter.cs
- MethodMessage.cs
- NativeMethods.cs
- AppDomainCompilerProxy.cs
- MenuCommand.cs
- MessageSmuggler.cs