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
- ConstrainedDataObject.cs
- Rijndael.cs
- CheckBoxBaseAdapter.cs
- TableLayoutColumnStyleCollection.cs
- ParameterRetriever.cs
- DataControlImageButton.cs
- EntityContainerAssociationSet.cs
- TraceInternal.cs
- BlurEffect.cs
- RevocationPoint.cs
- BitmapEffectInput.cs
- DesignerCategoryAttribute.cs
- ContextMenu.cs
- SizeLimitedCache.cs
- DynamicValidator.cs
- AxisAngleRotation3D.cs
- TypeUsageBuilder.cs
- DataViewManagerListItemTypeDescriptor.cs
- loginstatus.cs
- Pkcs9Attribute.cs
- TextTreeInsertUndoUnit.cs
- IndexedSelectQueryOperator.cs
- RuleRefElement.cs
- MultipleViewProviderWrapper.cs
- RuntimeCompatibilityAttribute.cs
- UIInitializationException.cs
- BoundColumn.cs
- EventLog.cs
- Visual3D.cs
- BaseCollection.cs
- BlurEffect.cs
- ListViewDataItem.cs
- basecomparevalidator.cs
- unsafenativemethodstextservices.cs
- DocumentPage.cs
- IntSecurity.cs
- GridViewColumnCollection.cs
- JapaneseLunisolarCalendar.cs
- EncryptionUtility.cs
- ScriptComponentDescriptor.cs
- ServicePoint.cs
- Permission.cs
- XmlSerializableWriter.cs
- ProfileSettingsCollection.cs
- TextMetrics.cs
- IntersectQueryOperator.cs
- XPathNodeInfoAtom.cs
- FixedSOMTable.cs
- XmlNodeReader.cs
- DataGridViewBand.cs
- ToolBarPanel.cs
- ObjectList.cs
- StylusPlugInCollection.cs
- CheckedListBox.cs
- ManagedIStream.cs
- HashJoinQueryOperatorEnumerator.cs
- PermissionSetTriple.cs
- SHA384CryptoServiceProvider.cs
- ObjectContextServiceProvider.cs
- Parser.cs
- PerspectiveCamera.cs
- RepeaterItem.cs
- FileDetails.cs
- TrackingServices.cs
- HuffCodec.cs
- SqlMultiplexer.cs
- OleDbDataReader.cs
- DigestTraceRecordHelper.cs
- __ComObject.cs
- SoapMessage.cs
- HttpWebResponse.cs
- ProtocolElementCollection.cs
- SingleConverter.cs
- XmlMapping.cs
- CssTextWriter.cs
- FrameworkContextData.cs
- XamlWrappingReader.cs
- WebControlParameterProxy.cs
- Constraint.cs
- BindingCompleteEventArgs.cs
- ThreadStartException.cs
- DataSvcMapFile.cs
- StringSorter.cs
- UTF32Encoding.cs
- WorkflowWebService.cs
- ReaderWriterLock.cs
- NumericUpDownAcceleration.cs
- ExceptionDetail.cs
- CharacterBuffer.cs
- SQLBytesStorage.cs
- FunctionMappingTranslator.cs
- PolicyUnit.cs
- CompatibleIComparer.cs
- OleDbCommand.cs
- XmlSerializationGeneratedCode.cs
- PlanCompiler.cs
- DataSourceUtil.cs
- InternalTypeHelper.cs
- SessionEndedEventArgs.cs
- WindowsToolbar.cs