Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / RelAssertionDirectKeyIdentifierClause.cs / 1 / RelAssertionDirectKeyIdentifierClause.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Tokens; using System.ServiceModel; using System.ServiceModel.Security.Tokens; class RelAssertionDirectKeyIdentifierClause : SecurityKeyIdentifierClause { string assertionId; public RelAssertionDirectKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength) : base(null, derivationNonce, derivationLength) { if (string.IsNullOrEmpty(assertionId)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.AssertionIdCannotBeNullOrEmpty)); } this.assertionId = assertionId; } public string AssertionId { get { return this.assertionId; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { RelAssertionDirectKeyIdentifierClause that = keyIdentifierClause as RelAssertionDirectKeyIdentifierClause; // 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.AssertionId == this.AssertionId)); } } } // 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
- HideDisabledControlAdapter.cs
- DispatcherHookEventArgs.cs
- Avt.cs
- TreeNodeCollectionEditor.cs
- SingleAnimation.cs
- ResourcePool.cs
- GroupBox.cs
- TableLayoutStyle.cs
- ImageBrush.cs
- DbConnectionOptions.cs
- ReflectionTypeLoadException.cs
- StateManagedCollection.cs
- SessionStateItemCollection.cs
- XDRSchema.cs
- OlePropertyStructs.cs
- TripleDESCryptoServiceProvider.cs
- DataBinding.cs
- CreateUserErrorEventArgs.cs
- GridViewRowEventArgs.cs
- ProviderCollection.cs
- PersonalizationStateInfo.cs
- RegexCompiler.cs
- CodeSubDirectory.cs
- PolicyVersion.cs
- PageParserFilter.cs
- WebServiceMethodData.cs
- SizeIndependentAnimationStorage.cs
- Wizard.cs
- RowTypePropertyElement.cs
- ActivityBuilderHelper.cs
- MetadataItemEmitter.cs
- SelectionWordBreaker.cs
- Splitter.cs
- ToolStripTextBox.cs
- TextServicesHost.cs
- CircleEase.cs
- DeriveBytes.cs
- Privilege.cs
- FieldAccessException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SizeAnimationUsingKeyFrames.cs
- FileVersion.cs
- SchemeSettingElement.cs
- Rotation3DAnimation.cs
- IntegerValidatorAttribute.cs
- TraceUtility.cs
- WebErrorHandler.cs
- GB18030Encoding.cs
- ObjectItemCachedAssemblyLoader.cs
- GridViewColumnCollection.cs
- PeerCustomResolverBindingElement.cs
- AspNetRouteServiceHttpHandler.cs
- PeerNearMe.cs
- XamlVector3DCollectionSerializer.cs
- FileDialog.cs
- DocumentPageViewAutomationPeer.cs
- ContextMenuStrip.cs
- DNS.cs
- ProviderConnectionPoint.cs
- EntityException.cs
- printdlgexmarshaler.cs
- TextEditor.cs
- FormsAuthenticationCredentials.cs
- CopyCodeAction.cs
- DeflateInput.cs
- DetailsViewInsertedEventArgs.cs
- SmiContextFactory.cs
- Rectangle.cs
- CorrelationValidator.cs
- ColorAnimationUsingKeyFrames.cs
- RightsManagementEncryptedStream.cs
- DllNotFoundException.cs
- Light.cs
- SignatureHelper.cs
- RegexTree.cs
- iisPickupDirectory.cs
- ContentValidator.cs
- VirtualDirectoryMapping.cs
- XPathSelectionIterator.cs
- DataSourceCacheDurationConverter.cs
- Serializer.cs
- DynamicRouteExpression.cs
- DataObjectPastingEventArgs.cs
- TableLayoutPanelCellPosition.cs
- NamedObjectList.cs
- DateTimeOffset.cs
- ResourceSetExpression.cs
- PageCatalogPart.cs
- InfoCardKeyedHashAlgorithm.cs
- TypedReference.cs
- UserControl.cs
- PathBox.cs
- ServicePointManagerElement.cs
- ValidationUtility.cs
- BinaryObjectWriter.cs
- XsltContext.cs
- CodeSnippetStatement.cs
- ListViewItem.cs
- ValidationErrorCollection.cs
- DataSourceView.cs