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
- HttpServerUtilityBase.cs
- updateconfighost.cs
- MatrixStack.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HostExecutionContextManager.cs
- ArgIterator.cs
- FormClosedEvent.cs
- DataSourceControlBuilder.cs
- XmlSchemaAttributeGroupRef.cs
- HeaderCollection.cs
- CompressionTransform.cs
- IndexedGlyphRun.cs
- DataMemberFieldConverter.cs
- _RequestCacheProtocol.cs
- BasePropertyDescriptor.cs
- SqlDataReaderSmi.cs
- RegexCompiler.cs
- HotSpotCollection.cs
- BufferAllocator.cs
- TextParagraphView.cs
- Evidence.cs
- Viewport2DVisual3D.cs
- EventLogPermissionEntryCollection.cs
- CheckableControlBaseAdapter.cs
- RoleManagerSection.cs
- FaultCode.cs
- EncryptedPackageFilter.cs
- DriveNotFoundException.cs
- QueryCoreOp.cs
- TemplateControlBuildProvider.cs
- HttpCacheParams.cs
- MatrixTransform.cs
- SafeBitVector32.cs
- ResourceAttributes.cs
- WorkflowCreationContext.cs
- ZoomingMessageFilter.cs
- Form.cs
- AbstractDataSvcMapFileLoader.cs
- ListViewPagedDataSource.cs
- TryCatchDesigner.xaml.cs
- AnnotationHighlightLayer.cs
- OleCmdHelper.cs
- OneToOneMappingSerializer.cs
- CategoryList.cs
- ConfigurationLocation.cs
- FlowDocumentScrollViewer.cs
- ConnectionsZoneDesigner.cs
- SID.cs
- X509SecurityTokenProvider.cs
- DetailsViewModeEventArgs.cs
- OrderingExpression.cs
- ClientTargetCollection.cs
- MultiSelector.cs
- ListView.cs
- RenderContext.cs
- IPAddressCollection.cs
- LexicalChunk.cs
- RangeValidator.cs
- DateTimeFormatInfo.cs
- PriorityBindingExpression.cs
- WebPartExportVerb.cs
- RbTree.cs
- Splitter.cs
- ApplicationDirectoryMembershipCondition.cs
- LabelExpression.cs
- HttpModuleActionCollection.cs
- LicenseProviderAttribute.cs
- TableLayoutPanelCellPosition.cs
- HashSet.cs
- Panel.cs
- RuntimeConfig.cs
- DbExpressionRules.cs
- Command.cs
- CodeGotoStatement.cs
- WebServiceHost.cs
- SqlFunctions.cs
- Message.cs
- WorkflowFormatterBehavior.cs
- PointAnimationUsingKeyFrames.cs
- WrappedIUnknown.cs
- AssemblyBuilderData.cs
- XmlNodeComparer.cs
- VectorValueSerializer.cs
- WSTrustDec2005.cs
- HttpHandlerAction.cs
- X509CertificateStore.cs
- TextLine.cs
- ToolboxComponentsCreatingEventArgs.cs
- HierarchicalDataSourceControl.cs
- AssemblyInfo.cs
- ConfigurationProperty.cs
- ToolStripTextBox.cs
- SuppressIldasmAttribute.cs
- EntityContainerRelationshipSet.cs
- MarkupCompilePass1.cs
- SmiGettersStream.cs
- SpecularMaterial.cs
- MessageSmuggler.cs
- OdbcInfoMessageEvent.cs
- ClientProxyGenerator.cs