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
- DataServices.cs
- CacheHelper.cs
- SortExpressionBuilder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NetworkInterface.cs
- FileDialog.cs
- ColorTranslator.cs
- ProfilePropertySettingsCollection.cs
- PerspectiveCamera.cs
- SiteMapHierarchicalDataSourceView.cs
- RbTree.cs
- RectConverter.cs
- Component.cs
- ResourceType.cs
- CompressedStack.cs
- PageCanvasSize.cs
- Proxy.cs
- HttpInputStream.cs
- GreaterThan.cs
- ButtonColumn.cs
- BindingContext.cs
- DefaultPrintController.cs
- DesignerRegionMouseEventArgs.cs
- EditingScope.cs
- XmlDataSourceNodeDescriptor.cs
- AttributeCollection.cs
- WindowsServiceCredential.cs
- SqlConnectionStringBuilder.cs
- ActivityWithResultConverter.cs
- DrawingGroup.cs
- NoneExcludedImageIndexConverter.cs
- ModelUIElement3D.cs
- ResourcesBuildProvider.cs
- ActivityExecutionContext.cs
- ContourSegment.cs
- WorkflowServiceHostFactory.cs
- GridProviderWrapper.cs
- ComPlusServiceHost.cs
- LambdaCompiler.Logical.cs
- TakeOrSkipQueryOperator.cs
- SmtpReplyReaderFactory.cs
- CodeDelegateInvokeExpression.cs
- XmlWhitespace.cs
- ContextProperty.cs
- XmlSerializerVersionAttribute.cs
- AlphabetConverter.cs
- BamlResourceDeserializer.cs
- FixedTextSelectionProcessor.cs
- ProcessProtocolHandler.cs
- OperatorExpressions.cs
- NotifyInputEventArgs.cs
- Rule.cs
- MarkupProperty.cs
- SqlTriggerContext.cs
- XmlNavigatorFilter.cs
- ConfigurationPropertyAttribute.cs
- Inflater.cs
- URLAttribute.cs
- Brush.cs
- SspiHelper.cs
- ParenthesizePropertyNameAttribute.cs
- _OSSOCK.cs
- HttpPostServerProtocol.cs
- MoveSizeWinEventHandler.cs
- XmlCodeExporter.cs
- ClockGroup.cs
- RichTextBoxContextMenu.cs
- DragEventArgs.cs
- SetStateEventArgs.cs
- Typography.cs
- StringSource.cs
- TearOffProxy.cs
- ValidatingReaderNodeData.cs
- GiveFeedbackEvent.cs
- CompilerCollection.cs
- ResourceAttributes.cs
- SecurityUtils.cs
- GeometryGroup.cs
- Tool.cs
- DataDocumentXPathNavigator.cs
- DbConnectionStringBuilder.cs
- FileVersionInfo.cs
- SystemIcmpV4Statistics.cs
- CookieParameter.cs
- EntityContainerAssociationSetEnd.cs
- RtfFormatStack.cs
- entitydatasourceentitysetnameconverter.cs
- StyleCollection.cs
- SoapElementAttribute.cs
- ObjectHandle.cs
- DivideByZeroException.cs
- WebServiceResponse.cs
- WmpBitmapDecoder.cs
- PersistencePipeline.cs
- TemplateKeyConverter.cs
- TypeConverterHelper.cs
- SqlPersonalizationProvider.cs
- RepeatButtonAutomationPeer.cs
- CatalogZoneBase.cs
- SpanIndex.cs