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
- RepeaterItem.cs
- AvTrace.cs
- SapiRecoInterop.cs
- Geometry.cs
- Selection.cs
- TdsParser.cs
- EventHandlersStore.cs
- PrimitiveSchema.cs
- UnionExpr.cs
- EditorZoneAutoFormat.cs
- _NetRes.cs
- X509Certificate.cs
- ObjectDataSourceMethodEventArgs.cs
- ImplicitInputBrush.cs
- OleDbEnumerator.cs
- AbandonedMutexException.cs
- RsaElement.cs
- Label.cs
- SiteMapNodeCollection.cs
- ConstraintEnumerator.cs
- ActivityMarkupSerializer.cs
- Point3DValueSerializer.cs
- SspiNegotiationTokenAuthenticatorState.cs
- RadioButtonRenderer.cs
- QuotedStringFormatReader.cs
- RefType.cs
- GroupItem.cs
- DataGridBoolColumn.cs
- ManipulationPivot.cs
- EnumerableCollectionView.cs
- XPathScanner.cs
- XmlLangPropertyAttribute.cs
- FreezableOperations.cs
- ScrollViewerAutomationPeer.cs
- RectangleConverter.cs
- XmlValueConverter.cs
- WebAdminConfigurationHelper.cs
- SqlBooleanMismatchVisitor.cs
- ProgressBarBrushConverter.cs
- BinaryExpression.cs
- EllipseGeometry.cs
- SchemaAttDef.cs
- WindowsAuthenticationEventArgs.cs
- SqlDataSourceParameterParser.cs
- WebConfigurationManager.cs
- ForwardPositionQuery.cs
- DataKeyCollection.cs
- DateTimePicker.cs
- CompositeFontParser.cs
- SchemaImporter.cs
- DesignTimeXamlWriter.cs
- RSAOAEPKeyExchangeFormatter.cs
- SizeConverter.cs
- ObjectConverter.cs
- PartialCachingAttribute.cs
- TreeViewHitTestInfo.cs
- XmlSchema.cs
- WebControlAdapter.cs
- ValidationResult.cs
- ThreadExceptionEvent.cs
- MouseGesture.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SimpleApplicationHost.cs
- EventsTab.cs
- ActivityExecutorSurrogate.cs
- TabletDeviceInfo.cs
- XmlSchemaImport.cs
- ReflectEventDescriptor.cs
- DataColumnCollection.cs
- DbExpressionBuilder.cs
- PageAsyncTaskManager.cs
- SetStoryboardSpeedRatio.cs
- TableDetailsCollection.cs
- ReverseInheritProperty.cs
- ActivityTypeCodeDomSerializer.cs
- HandlerBase.cs
- TraceHandlerErrorFormatter.cs
- ResXBuildProvider.cs
- ExpressionList.cs
- XmlWrappingWriter.cs
- ItemsPanelTemplate.cs
- WebServiceMethodData.cs
- TextureBrush.cs
- GeneralTransform3DCollection.cs
- ProtocolsSection.cs
- ScrollContentPresenter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Processor.cs
- DigestComparer.cs
- SystemIcmpV6Statistics.cs
- LayoutUtils.cs
- DoubleKeyFrameCollection.cs
- CellTreeNodeVisitors.cs
- MonthChangedEventArgs.cs
- PathStreamGeometryContext.cs
- Trace.cs
- FrameDimension.cs
- TextContainer.cs
- PtsCache.cs
- DiagnosticsConfigurationHandler.cs