Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAssertionKeyIdentifierClause.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnicastIPAddressInformationCollection.cs
- WebPartConnectVerb.cs
- MexBindingBindingCollectionElement.cs
- FactoryMaker.cs
- Domain.cs
- JsonDeserializer.cs
- SolidBrush.cs
- MasterPage.cs
- TcpClientChannel.cs
- ShellProvider.cs
- Stream.cs
- CqlBlock.cs
- TraceSource.cs
- MouseCaptureWithinProperty.cs
- PersonalizationProviderHelper.cs
- XmlSignatureProperties.cs
- XamlTypeMapper.cs
- Table.cs
- StyleConverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- Padding.cs
- XmlQueryType.cs
- filewebresponse.cs
- Command.cs
- MethodBuilderInstantiation.cs
- RuntimeComponentFilter.cs
- URLIdentityPermission.cs
- DataBindingList.cs
- ConnectionManagementSection.cs
- PanelDesigner.cs
- SmtpFailedRecipientsException.cs
- InstanceHandleReference.cs
- RegexMatch.cs
- Parser.cs
- CreateUserWizard.cs
- Win32Native.cs
- PointKeyFrameCollection.cs
- ViewStateException.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- NameValueSectionHandler.cs
- storepermissionattribute.cs
- ComEventsSink.cs
- Rule.cs
- EditingCommands.cs
- ObjectDataSourceMethodEditor.cs
- mediaeventshelper.cs
- TextFormatterHost.cs
- SchemaNamespaceManager.cs
- Point.cs
- TemplateDefinition.cs
- EventLogInformation.cs
- LineSegment.cs
- UpdatePanelTriggerCollection.cs
- KeyValueConfigurationCollection.cs
- sqlcontext.cs
- StylusPointPropertyInfo.cs
- RootBuilder.cs
- FacetValues.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SecurityCriticalDataForSet.cs
- WebPartActionVerb.cs
- TemplatePartAttribute.cs
- StructuralType.cs
- BaseEntityWrapper.cs
- XLinq.cs
- SystemIPGlobalStatistics.cs
- ResXFileRef.cs
- MLangCodePageEncoding.cs
- Point3DCollection.cs
- RootAction.cs
- AssertFilter.cs
- TemplateXamlParser.cs
- UntypedNullExpression.cs
- ProfileService.cs
- UIElement.cs
- RouteItem.cs
- Int32Converter.cs
- DataSourceHelper.cs
- PrintPreviewControl.cs
- MouseButton.cs
- ResumeStoryboard.cs
- HttpSessionStateBase.cs
- basecomparevalidator.cs
- FormsAuthenticationUser.cs
- ForeignKeyConstraint.cs
- InternalControlCollection.cs
- updateconfighost.cs
- ZipIOFileItemStream.cs
- StreamAsIStream.cs
- CompilationUnit.cs
- StateBag.cs
- HttpFileCollection.cs
- RegistrySecurity.cs
- DbgUtil.cs
- propertyentry.cs
- NamespaceTable.cs
- WebRequest.cs
- XmlSchemaSequence.cs
- XmlDocumentViewSchema.cs
- WmfPlaceableFileHeader.cs