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
- ExtensionDataObject.cs
- RuleSettings.cs
- SafeMemoryMappedViewHandle.cs
- TypeDependencyAttribute.cs
- Menu.cs
- SoapEnumAttribute.cs
- AssemblyUtil.cs
- WmlValidatorAdapter.cs
- ConfigurationValidatorBase.cs
- GlyphCollection.cs
- SeverityFilter.cs
- InvokeMethodActivity.cs
- DataBindingValueUIHandler.cs
- SafeNativeMethods.cs
- SmtpReplyReader.cs
- DataPagerFieldItem.cs
- ThreadSafeList.cs
- FactoryId.cs
- AccessedThroughPropertyAttribute.cs
- GeometryValueSerializer.cs
- AssertFilter.cs
- DoWhile.cs
- MessagePropertyVariants.cs
- ContextBase.cs
- XmlElement.cs
- BitmapCache.cs
- WsatServiceAddress.cs
- OuterGlowBitmapEffect.cs
- TemplateXamlParser.cs
- UrlAuthFailedErrorFormatter.cs
- FontStyle.cs
- DbException.cs
- NamedPipeActivation.cs
- IPipelineRuntime.cs
- SqlParameterizer.cs
- ManifestBasedResourceGroveler.cs
- ImportContext.cs
- UnconditionalPolicy.cs
- EmbeddedObject.cs
- ListViewCancelEventArgs.cs
- FormsAuthenticationModule.cs
- ConstrainedDataObject.cs
- CompilerCollection.cs
- _PooledStream.cs
- StorageMappingFragment.cs
- CatalogZone.cs
- EventsTab.cs
- GestureRecognitionResult.cs
- SafeRightsManagementPubHandle.cs
- DiagnosticSection.cs
- XslUrlEditor.cs
- DataRecordInternal.cs
- MappingModelBuildProvider.cs
- HttpValueCollection.cs
- WrappedReader.cs
- HtmlShim.cs
- PrivateFontCollection.cs
- AdjustableArrowCap.cs
- Helpers.cs
- TypeSystem.cs
- BuildManager.cs
- WorkflowControlEndpoint.cs
- MouseOverProperty.cs
- Int32CAMarshaler.cs
- EUCJPEncoding.cs
- RankException.cs
- NavigationEventArgs.cs
- Binding.cs
- Processor.cs
- unsafeIndexingFilterStream.cs
- CookieParameter.cs
- SuspendDesigner.cs
- SmtpMail.cs
- ToolStripItemCollection.cs
- ActionFrame.cs
- SafeTokenHandle.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DataListItem.cs
- CodeCompileUnit.cs
- XmlReflectionImporter.cs
- RtfToXamlLexer.cs
- SafePointer.cs
- PagesChangedEventArgs.cs
- initElementDictionary.cs
- RootContext.cs
- PropertyItemInternal.cs
- HttpRuntime.cs
- LoginStatusDesigner.cs
- x509store.cs
- ZoneButton.cs
- SortFieldComparer.cs
- LogPolicy.cs
- DesignerDataConnection.cs
- CodeMethodReturnStatement.cs
- CachedRequestParams.cs
- LexicalChunk.cs
- Codec.cs
- IntSecurity.cs
- HwndStylusInputProvider.cs
- SmiSettersStream.cs