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
- ConfigurationProperty.cs
- WindowsFormsSynchronizationContext.cs
- SafeThreadHandle.cs
- Propagator.Evaluator.cs
- Profiler.cs
- EventManager.cs
- NumberSubstitution.cs
- GenericPrincipal.cs
- ClaimTypeRequirement.cs
- MessageSecurityException.cs
- TextElementCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- WsdlBuildProvider.cs
- CodeLinePragma.cs
- GlyphCache.cs
- ProtocolInformationReader.cs
- ColumnPropertiesGroup.cs
- AssemblyResolver.cs
- CounterCreationDataCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- BuildManager.cs
- AuthenticationManager.cs
- AsyncOperationManager.cs
- ConcatQueryOperator.cs
- M3DUtil.cs
- CertificateManager.cs
- Hash.cs
- ComponentRenameEvent.cs
- NativeMethods.cs
- SqlGenericUtil.cs
- DataGridItemAutomationPeer.cs
- ButtonStandardAdapter.cs
- BaseDataBoundControl.cs
- ExpandSegmentCollection.cs
- DynamicDataRouteHandler.cs
- SizeConverter.cs
- TypeExtensionConverter.cs
- BitmapSizeOptions.cs
- QilFactory.cs
- MobileControlsSection.cs
- UIAgentAsyncEndRequest.cs
- AppDomainUnloadedException.cs
- OciEnlistContext.cs
- TextEndOfSegment.cs
- SetterBaseCollection.cs
- RegisteredExpandoAttribute.cs
- PointLightBase.cs
- CompilerErrorCollection.cs
- XmlAttributeCache.cs
- FileLogRecordEnumerator.cs
- XmlReader.cs
- DataContext.cs
- MarginCollapsingState.cs
- ErrorFormatterPage.cs
- SafeArrayTypeMismatchException.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XPathScanner.cs
- ControlPropertyNameConverter.cs
- TextServicesProperty.cs
- ProtectedConfigurationSection.cs
- StringValidator.cs
- HyperLinkField.cs
- bindurihelper.cs
- CodeAttributeArgumentCollection.cs
- WebPartTransformerCollection.cs
- StringDictionary.cs
- Timer.cs
- DataGridClipboardCellContent.cs
- Sentence.cs
- FormsAuthenticationCredentials.cs
- FieldCollectionEditor.cs
- UIAgentInitializationException.cs
- ListView.cs
- RequestFactory.cs
- ConfigXmlDocument.cs
- OdbcConnection.cs
- WebHttpBinding.cs
- ContentType.cs
- SQLInt32.cs
- FixUp.cs
- XmlRootAttribute.cs
- LinqDataSourceValidationException.cs
- AliasGenerator.cs
- SupportingTokenSpecification.cs
- RuleSet.cs
- DiscoveryRequestHandler.cs
- VisualBasicExpressionConverter.cs
- EngineSite.cs
- TempFiles.cs
- XmlNodeReader.cs
- WinFormsSecurity.cs
- SerializationAttributes.cs
- SqlFormatter.cs
- handlecollector.cs
- LinkButton.cs
- HwndAppCommandInputProvider.cs
- SafeSerializationManager.cs
- PeerObject.cs
- ImageConverter.cs
- SerTrace.cs