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
- ScaleTransform.cs
- FilterableAttribute.cs
- ZoneButton.cs
- TextRangeProviderWrapper.cs
- CryptoApi.cs
- DbParameterCollectionHelper.cs
- XamlTypeMapper.cs
- ChtmlTextWriter.cs
- StructuredTypeEmitter.cs
- UnsafeNativeMethods.cs
- RuleConditionDialog.Designer.cs
- SHA1Managed.cs
- PropertyRef.cs
- ControlCachePolicy.cs
- HttpModuleActionCollection.cs
- Exceptions.cs
- SerializerProvider.cs
- TextDecorations.cs
- Inline.cs
- WorkflowRuntimeServicesBehavior.cs
- CustomTypeDescriptor.cs
- CounterSampleCalculator.cs
- VisualBrush.cs
- DependencyProperty.cs
- WindowsClaimSet.cs
- ProfileElement.cs
- CombinedGeometry.cs
- DependencyProperty.cs
- PopupEventArgs.cs
- UpdatableWrapper.cs
- path.cs
- StackBuilderSink.cs
- SecurityContext.cs
- StateItem.cs
- UnicodeEncoding.cs
- SmtpReplyReaderFactory.cs
- TextAdaptor.cs
- WmlValidatorAdapter.cs
- PropagationProtocolsTracing.cs
- MultipleViewProviderWrapper.cs
- TypeUsage.cs
- DefaultPropertyAttribute.cs
- JournalEntryStack.cs
- HtmlInputFile.cs
- AutoResizedEvent.cs
- FragmentQueryKB.cs
- Divide.cs
- ExceptionRoutedEventArgs.cs
- StoreContentChangedEventArgs.cs
- ListViewTableRow.cs
- RTLAwareMessageBox.cs
- XDRSchema.cs
- ObjectDataSourceDesigner.cs
- ToolboxCategoryItems.cs
- ExternalFile.cs
- SecurityRuntime.cs
- DetailsViewDeleteEventArgs.cs
- EntityStoreSchemaFilterEntry.cs
- ListBindingHelper.cs
- DoubleKeyFrameCollection.cs
- ForEachAction.cs
- EntityClientCacheKey.cs
- OperandQuery.cs
- TimelineGroup.cs
- XmlNamespaceMappingCollection.cs
- InputGestureCollection.cs
- FormViewModeEventArgs.cs
- HtmlElement.cs
- _SafeNetHandles.cs
- ToggleProviderWrapper.cs
- ToolStripItemCollection.cs
- DbConnectionClosed.cs
- IISUnsafeMethods.cs
- PathTooLongException.cs
- ResourceDisplayNameAttribute.cs
- PropertyEntry.cs
- DesignerInterfaces.cs
- ReferenceConverter.cs
- ValidatorCompatibilityHelper.cs
- VersionedStreamOwner.cs
- DataAccessException.cs
- StylusShape.cs
- Parser.cs
- EventLogLink.cs
- NotificationContext.cs
- SpecialFolderEnumConverter.cs
- StorageTypeMapping.cs
- ImplicitInputBrush.cs
- ToolStripPanelRenderEventArgs.cs
- XmlReader.cs
- CacheForPrimitiveTypes.cs
- OrderingInfo.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- WinCategoryAttribute.cs
- CheckBoxFlatAdapter.cs
- Authorization.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DatePicker.cs
- PerspectiveCamera.cs
- XmlSchemaSimpleTypeList.cs