Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAssertionKeyIdentifierClause.cs / 1305376 / SamlAssertionKeyIdentifierClause.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.Globalization; public class SamlAssertionKeyIdentifierClause : SecurityKeyIdentifierClause { readonly string assertionId; readonly string valueType; readonly string tokenTypeUri; readonly string binding; readonly string location; readonly string authorityKind; public SamlAssertionKeyIdentifierClause(string assertionId) : this(assertionId, null, 0) { } public SamlAssertionKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength) : this(assertionId, derivationNonce, derivationLength, null, null, null, null, null) { } internal SamlAssertionKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength, string valueType, string tokenTypeUri, string binding, string location, string authorityKind) : base(null, derivationNonce, derivationLength) { if (assertionId == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertionId"); } this.assertionId = assertionId; this.valueType = valueType; this.tokenTypeUri = tokenTypeUri; this.binding = binding; this.location = location; this.authorityKind = authorityKind; } public string AssertionId { get { return this.assertionId; } } internal string TokenTypeUri { get { return this.tokenTypeUri; } } internal string ValueType { get { return this.valueType; } } internal string Binding { get { return this.binding; } } internal string Location { get { return this.location; } } internal string AuthorityKind { get { return this.authorityKind; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { SamlAssertionKeyIdentifierClause that = keyIdentifierClause as SamlAssertionKeyIdentifierClause; // 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.Matches(this.assertionId)); } public bool Matches(string assertionId) { return this.assertionId == assertionId; } public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "SamlAssertionKeyIdentifierClause(AssertionId = '{0}')", this.AssertionId); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Storyboard.cs
- BrowserInteropHelper.cs
- IFormattable.cs
- XmlDownloadManager.cs
- DrawingAttributesDefaultValueFactory.cs
- FrameSecurityDescriptor.cs
- StringWriter.cs
- CheckBoxFlatAdapter.cs
- LocalizableAttribute.cs
- Dictionary.cs
- EncryptedXml.cs
- MultiDataTrigger.cs
- MergeFilterQuery.cs
- HtmlInputControl.cs
- RedirectionProxy.cs
- XamlVector3DCollectionSerializer.cs
- HebrewCalendar.cs
- ConnectionsZoneAutoFormat.cs
- ServiceDebugBehavior.cs
- ArrayConverter.cs
- ErrorHandler.cs
- UniqueConstraint.cs
- PrimitiveXmlSerializers.cs
- PartEditor.cs
- TraceListeners.cs
- SystemParameters.cs
- DispatcherProcessingDisabled.cs
- RightNameExpirationInfoPair.cs
- SmtpSection.cs
- InvokeMethod.cs
- DropShadowBitmapEffect.cs
- FullTrustAssembliesSection.cs
- WindowsServiceElement.cs
- JavascriptCallbackResponseProperty.cs
- PauseStoryboard.cs
- RuntimeIdentifierPropertyAttribute.cs
- GlyphRun.cs
- ProfileSection.cs
- DropDownButton.cs
- ObfuscateAssemblyAttribute.cs
- XmlAttributeCollection.cs
- MetadataCollection.cs
- PropertiesTab.cs
- ViewRendering.cs
- PenLineCapValidation.cs
- DataGridViewLinkColumn.cs
- ComplexTypeEmitter.cs
- DataObjectPastingEventArgs.cs
- NativeMethods.cs
- JobCollate.cs
- AlternateViewCollection.cs
- RemotingAttributes.cs
- WebPartConnectionsEventArgs.cs
- DataBinder.cs
- PassportAuthenticationEventArgs.cs
- SystemIcmpV6Statistics.cs
- StandardToolWindows.cs
- SafeViewOfFileHandle.cs
- Model3DGroup.cs
- XsdCachingReader.cs
- CLSCompliantAttribute.cs
- OracleTransaction.cs
- BindingList.cs
- XamlVector3DCollectionSerializer.cs
- PropertyToken.cs
- SecurityPolicySection.cs
- GeneralTransform.cs
- DiscreteKeyFrames.cs
- EncoderBestFitFallback.cs
- ExtendedTransformFactory.cs
- _CommandStream.cs
- RangeValidator.cs
- HttpCapabilitiesEvaluator.cs
- DataColumnChangeEvent.cs
- MeasureItemEvent.cs
- HostProtectionException.cs
- Geometry3D.cs
- ScrollContentPresenter.cs
- httpserverutility.cs
- SelectedGridItemChangedEvent.cs
- ReadOnlyDictionary.cs
- TableRow.cs
- EventLogEntryCollection.cs
- AssemblyContextControlItem.cs
- WizardDesigner.cs
- IList.cs
- ProtocolsConfigurationEntry.cs
- UserControlAutomationPeer.cs
- ListViewSelectEventArgs.cs
- _SslStream.cs
- CodeCatchClause.cs
- NavigationPropertyEmitter.cs
- TextCompositionManager.cs
- DownloadProgressEventArgs.cs
- Rectangle.cs
- BCryptNative.cs
- SafeSecurityHelper.cs
- Translator.cs
- ByteAnimation.cs
- GAC.cs