Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SamlAssertionDirectKeyIdentifierClause.cs / 1 / SamlAssertionDirectKeyIdentifierClause.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 SamlAssertionDirectKeyIdentifierClause : SecurityKeyIdentifierClause { string samlUri; public SamlAssertionDirectKeyIdentifierClause(string samlUri, byte[] derivationNonce, int derivationLength) : base(null, derivationNonce, derivationLength) { if (string.IsNullOrEmpty(samlUri)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.SamlUriCannotBeNullOrEmpty)); } this.samlUri = samlUri; } public string SamlUri { get { return this.samlUri; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { SamlAssertionDirectKeyIdentifierClause that = keyIdentifierClause as SamlAssertionDirectKeyIdentifierClause; // 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.SamlUri == this.SamlUri)); } } } // 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
- HiddenFieldPageStatePersister.cs
- Compress.cs
- CustomMenuItemCollection.cs
- RowSpanVector.cs
- GiveFeedbackEventArgs.cs
- HeaderedItemsControl.cs
- CellConstant.cs
- IdleTimeoutMonitor.cs
- MimeBasePart.cs
- FileSystemEventArgs.cs
- GridErrorDlg.cs
- TreeBuilder.cs
- TextElementCollectionHelper.cs
- FamilyMapCollection.cs
- BindingNavigator.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlLanguage.cs
- ApplicationId.cs
- AdapterDictionary.cs
- RepeaterItem.cs
- MarshalDirectiveException.cs
- ZoomPercentageConverter.cs
- CommandValueSerializer.cs
- FastEncoder.cs
- CodeDirectiveCollection.cs
- WindowPatternIdentifiers.cs
- ResourceAssociationSet.cs
- ErrorFormatterPage.cs
- SQLDecimal.cs
- FtpCachePolicyElement.cs
- BoundField.cs
- CharacterMetricsDictionary.cs
- DataGrid.cs
- UpdatePanel.cs
- SizeAnimationBase.cs
- propertytag.cs
- FormViewUpdatedEventArgs.cs
- FlowLayoutSettings.cs
- MaskInputRejectedEventArgs.cs
- SchemaTableColumn.cs
- AsyncOperationManager.cs
- DataTableExtensions.cs
- AssertFilter.cs
- Parameter.cs
- IIS7UserPrincipal.cs
- LinearQuaternionKeyFrame.cs
- AssociationSet.cs
- WindowsGrip.cs
- InputScopeConverter.cs
- OrderedParallelQuery.cs
- PageRequestManager.cs
- DbConnectionPoolGroup.cs
- SqlVisitor.cs
- InternalMappingException.cs
- StyleXamlTreeBuilder.cs
- DataGridClipboardHelper.cs
- InstanceLockQueryResult.cs
- DataGridPageChangedEventArgs.cs
- Perspective.cs
- DataGridViewColumnCollection.cs
- CssStyleCollection.cs
- WeakReference.cs
- MediaElement.cs
- PropertyDescriptorGridEntry.cs
- Line.cs
- ListViewGroupConverter.cs
- Transactions.cs
- ColumnResizeAdorner.cs
- BamlReader.cs
- PowerStatus.cs
- PropertyInfoSet.cs
- FrameAutomationPeer.cs
- SqlUserDefinedAggregateAttribute.cs
- TargetFrameworkAttribute.cs
- Predicate.cs
- AuthenticationService.cs
- ControlCollection.cs
- WebPartTracker.cs
- ZipIOExtraFieldZip64Element.cs
- SequenceNumber.cs
- FrameworkContextData.cs
- XmlDocumentViewSchema.cs
- OperatingSystem.cs
- WCFBuildProvider.cs
- WebFaultClientMessageInspector.cs
- AutomationPattern.cs
- RelationshipConverter.cs
- HighlightComponent.cs
- MsmqAuthenticationMode.cs
- EllipticalNodeOperations.cs
- AggregateNode.cs
- FamilyTypeface.cs
- ThreadExceptionEvent.cs
- DbProviderServices.cs
- OdbcParameterCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- XmlTextReaderImplHelpers.cs
- Win32Native.cs
- SQLGuid.cs
- DataBoundControlParameterTarget.cs