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
- ErrorWrapper.cs
- FileLevelControlBuilderAttribute.cs
- WindowsListViewSubItem.cs
- LocalBuilder.cs
- XmlWhitespace.cs
- PeerTransportElement.cs
- GeneralTransform3D.cs
- CapabilitiesRule.cs
- FixedFindEngine.cs
- HtmlLink.cs
- NativeMethods.cs
- Point3DValueSerializer.cs
- clipboard.cs
- ClientRuntimeConfig.cs
- ToolStripDropDown.cs
- CodeBinaryOperatorExpression.cs
- ColumnCollection.cs
- ToolBar.cs
- DataFieldEditor.cs
- ResXResourceReader.cs
- ComNativeDescriptor.cs
- TreeNode.cs
- TextHidden.cs
- SafeReadContext.cs
- LogPolicy.cs
- QilNode.cs
- WmlMobileTextWriter.cs
- ToolStripDropTargetManager.cs
- TagMapCollection.cs
- ValidationSummary.cs
- FakeModelItemImpl.cs
- ApplicationServiceManager.cs
- ValidationRule.cs
- DataRow.cs
- MethodBuilder.cs
- XmlSchemaSet.cs
- Table.cs
- ZipFileInfo.cs
- HttpCapabilitiesBase.cs
- JsonObjectDataContract.cs
- DataControlPagerLinkButton.cs
- ResXResourceSet.cs
- SplitContainer.cs
- XPathParser.cs
- BitmapSizeOptions.cs
- DocumentCollection.cs
- ImageInfo.cs
- GridViewColumnCollection.cs
- BrowserTree.cs
- XmlILOptimizerVisitor.cs
- KeysConverter.cs
- PersianCalendar.cs
- TraceProvider.cs
- DataSourceControlBuilder.cs
- ApplicationActivator.cs
- StylusSystemGestureEventArgs.cs
- ExtensionFile.cs
- Span.cs
- GeometryCombineModeValidation.cs
- LoginView.cs
- SourceItem.cs
- Vector3DAnimationUsingKeyFrames.cs
- ApplicationManager.cs
- ProcessHostFactoryHelper.cs
- DataBindingValueUIHandler.cs
- RangeValuePatternIdentifiers.cs
- Schema.cs
- SHA512CryptoServiceProvider.cs
- SqlNotificationEventArgs.cs
- ImageSourceConverter.cs
- ListViewUpdatedEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- ProtocolsSection.cs
- PriorityBinding.cs
- MSG.cs
- DotAtomReader.cs
- Condition.cs
- Setter.cs
- brushes.cs
- TextRenderer.cs
- MediaPlayerState.cs
- Boolean.cs
- ResourcesGenerator.cs
- SecurityTokenTypes.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlSerializerFactory.cs
- CatalogZoneBase.cs
- LinkedResource.cs
- Metafile.cs
- LinkButton.cs
- DateTimeFormatInfo.cs
- BaseCAMarshaler.cs
- TemplateEditingVerb.cs
- DataSourceCacheDurationConverter.cs
- XPathNodeHelper.cs
- ConstraintManager.cs
- PathTooLongException.cs
- BuildResultCache.cs
- HMACRIPEMD160.cs
- SystemTcpConnection.cs