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
- WindowsScroll.cs
- SplitterEvent.cs
- RenderCapability.cs
- CacheVirtualItemsEvent.cs
- RuleDefinitions.cs
- PropertyValidationContext.cs
- MsdtcWrapper.cs
- RtType.cs
- ThicknessConverter.cs
- NumberFormatter.cs
- ChannelFactoryBase.cs
- BamlResourceSerializer.cs
- UserMapPath.cs
- ExpressionEditorSheet.cs
- OptimizedTemplateContentHelper.cs
- cache.cs
- ComponentCache.cs
- ServiceModelActivationSectionGroup.cs
- SafeFileMappingHandle.cs
- ItemsControlAutomationPeer.cs
- DataService.cs
- SemanticAnalyzer.cs
- ButtonBase.cs
- PenLineJoinValidation.cs
- DataServiceException.cs
- XslAstAnalyzer.cs
- SoapFormatter.cs
- HtmlWindow.cs
- DynamicMethod.cs
- AppliedDeviceFiltersDialog.cs
- DbProviderFactories.cs
- AutoResetEvent.cs
- GeometryConverter.cs
- DesignerTransactionCloseEvent.cs
- StylusPointCollection.cs
- TreeNodeBinding.cs
- MailWebEventProvider.cs
- TableColumn.cs
- QilTernary.cs
- DoubleCollectionConverter.cs
- TextServicesHost.cs
- AssemblyCollection.cs
- ColorMap.cs
- WindowsStatusBar.cs
- PrimaryKeyTypeConverter.cs
- ObjectDataSourceDesigner.cs
- IconEditor.cs
- Quaternion.cs
- SystemIcmpV6Statistics.cs
- DataServiceStreamProviderWrapper.cs
- XhtmlBasicValidationSummaryAdapter.cs
- MemoryMappedFileSecurity.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Handle.cs
- HttpProcessUtility.cs
- GridViewRowPresenter.cs
- LocalizeDesigner.cs
- IsolationInterop.cs
- NativeActivityFaultContext.cs
- CDSsyncETWBCLProvider.cs
- SqlLiftWhereClauses.cs
- ProvidersHelper.cs
- SoapHeaders.cs
- ChangeInterceptorAttribute.cs
- ContentElement.cs
- WebZone.cs
- LogRecordSequence.cs
- WebRequestModuleElement.cs
- DataGridViewRowStateChangedEventArgs.cs
- RightNameExpirationInfoPair.cs
- LabelLiteral.cs
- References.cs
- ObjectSecurity.cs
- ModelUtilities.cs
- QueryResults.cs
- ColorContextHelper.cs
- WsdlEndpointConversionContext.cs
- Set.cs
- RangeValuePatternIdentifiers.cs
- ObjectMaterializedEventArgs.cs
- UriTemplateClientFormatter.cs
- DataTableNewRowEvent.cs
- EntityDataSourceColumn.cs
- DoubleAnimationBase.cs
- JournalNavigationScope.cs
- RSAPKCS1KeyExchangeFormatter.cs
- _RequestCacheProtocol.cs
- RadioButtonFlatAdapter.cs
- SecurityRuntime.cs
- SortDescriptionCollection.cs
- DeferrableContent.cs
- TableRowCollection.cs
- KnownBoxes.cs
- SortedSet.cs
- UserPreferenceChangedEventArgs.cs
- WinCategoryAttribute.cs
- HttpCachePolicyWrapper.cs
- ApplicationBuildProvider.cs
- WebHostUnsafeNativeMethods.cs
- TemplatingOptionsDialog.cs