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
- TypeNameHelper.cs
- RawStylusSystemGestureInputReport.cs
- CachedCompositeFamily.cs
- GridViewDeleteEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- HtmlGenericControl.cs
- SkipQueryOptionExpression.cs
- ProbeRequestResponseAsyncResult.cs
- ListControl.cs
- ColumnMapVisitor.cs
- ZipIOBlockManager.cs
- ImpersonateTokenRef.cs
- BinaryWriter.cs
- BookmarkInfo.cs
- UriTemplatePathSegment.cs
- ColumnWidthChangingEvent.cs
- Latin1Encoding.cs
- NamespaceTable.cs
- ArraySortHelper.cs
- DataControlField.cs
- DispatcherHooks.cs
- ImageBrush.cs
- LongValidatorAttribute.cs
- AuthenticatingEventArgs.cs
- BaseComponentEditor.cs
- CheckBox.cs
- MembershipUser.cs
- LambdaCompiler.Generated.cs
- Menu.cs
- activationcontext.cs
- XmlSchemaAttributeGroup.cs
- MenuItemBindingCollection.cs
- DetailsViewUpdatedEventArgs.cs
- elementinformation.cs
- CodeBinaryOperatorExpression.cs
- TabControlAutomationPeer.cs
- StrokeDescriptor.cs
- JoinElimination.cs
- unsafeIndexingFilterStream.cs
- HtmlElementEventArgs.cs
- InternalCache.cs
- MobileResource.cs
- LogSwitch.cs
- FileDetails.cs
- BasePattern.cs
- DispatcherExceptionFilterEventArgs.cs
- AvTraceDetails.cs
- AnnotationAdorner.cs
- CircleHotSpot.cs
- VisualTarget.cs
- DelegatingConfigHost.cs
- ViewBox.cs
- DataSourceView.cs
- EventBindingService.cs
- SystemIPGlobalStatistics.cs
- SeekStoryboard.cs
- CollectionChange.cs
- OdbcParameterCollection.cs
- CompositeActivityMarkupSerializer.cs
- MetadataExchangeClient.cs
- WindowPatternIdentifiers.cs
- MessageHeaderDescription.cs
- securitymgrsite.cs
- ImageMapEventArgs.cs
- WebReferencesBuildProvider.cs
- SerializationHelper.cs
- PropertyConverter.cs
- WinFormsSecurity.cs
- XmlAggregates.cs
- Facet.cs
- Int16Converter.cs
- MarshalByRefObject.cs
- Paragraph.cs
- securitycriticaldataformultiplegetandset.cs
- EntityException.cs
- DrawingContextWalker.cs
- PerformanceCounterPermissionEntryCollection.cs
- XmlSchemaAny.cs
- TextSyndicationContentKindHelper.cs
- UDPClient.cs
- AuthorizationSection.cs
- HtmlTableRow.cs
- Serializer.cs
- ExtensionDataObject.cs
- XPathAncestorIterator.cs
- SignedPkcs7.cs
- TextEndOfParagraph.cs
- ByeMessageApril2005.cs
- BlurBitmapEffect.cs
- SignatureHelper.cs
- DesignTimeTemplateParser.cs
- SafeSecurityHelper.cs
- CorrelationService.cs
- VersionPair.cs
- CriticalHandle.cs
- TextContainerHelper.cs
- TextBox.cs
- RegexWorker.cs
- DoubleConverter.cs
- PropertyContainer.cs