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
- SharedUtils.cs
- FileLogRecordStream.cs
- ObjectHelper.cs
- Evidence.cs
- PointValueSerializer.cs
- GroupBoxRenderer.cs
- TheQuery.cs
- ToolStrip.cs
- DbResourceAllocator.cs
- ScaleTransform3D.cs
- EventLogPermissionEntry.cs
- StorageSetMapping.cs
- Brush.cs
- HwndSourceKeyboardInputSite.cs
- IncrementalReadDecoders.cs
- DataGridViewIntLinkedList.cs
- AlignmentYValidation.cs
- TcpStreams.cs
- CollectionType.cs
- SynchronizedKeyedCollection.cs
- FullTextBreakpoint.cs
- TableItemStyle.cs
- NGCSerializerAsync.cs
- __Filters.cs
- TTSEvent.cs
- CssStyleCollection.cs
- TripleDES.cs
- DocumentApplication.cs
- Row.cs
- ExpressionWriter.cs
- PeerNameResolver.cs
- ServiceMetadataExtension.cs
- autovalidator.cs
- HierarchicalDataSourceDesigner.cs
- CaseCqlBlock.cs
- EncoderExceptionFallback.cs
- BitmapPalette.cs
- DataServiceExpressionVisitor.cs
- ContentWrapperAttribute.cs
- ImportContext.cs
- HandleRef.cs
- OleDbParameter.cs
- BindingCompleteEventArgs.cs
- WebPartCatalogCloseVerb.cs
- VBCodeProvider.cs
- DesignerView.xaml.cs
- BrowserCapabilitiesCompiler.cs
- CompareValidator.cs
- FrameworkObject.cs
- PixelShader.cs
- GradientStopCollection.cs
- SemaphoreFullException.cs
- SqlDataSource.cs
- NewArrayExpression.cs
- TCPListener.cs
- ImageSource.cs
- MultiSelectRootGridEntry.cs
- ProxyWebPartManager.cs
- SHA256Managed.cs
- HtmlUtf8RawTextWriter.cs
- DatePickerDateValidationErrorEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- SmtpNetworkElement.cs
- EventPrivateKey.cs
- MeshGeometry3D.cs
- CharStorage.cs
- WebServicesSection.cs
- SimpleTextLine.cs
- PerformanceCounterLib.cs
- EditorZoneBase.cs
- CompiledAction.cs
- SchemaExporter.cs
- DetailsViewAutoFormat.cs
- ProcessProtocolHandler.cs
- InputReferenceExpression.cs
- Scalars.cs
- PeerResolverSettings.cs
- DetailsViewUpdateEventArgs.cs
- CollectionViewGroupRoot.cs
- JpegBitmapDecoder.cs
- IconHelper.cs
- SafeCertificateContext.cs
- Rijndael.cs
- HostedElements.cs
- EventRoute.cs
- UdpDiscoveryMessageFilter.cs
- ResourceIDHelper.cs
- TextRunCacheImp.cs
- FixedPosition.cs
- ResolveNameEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- DbModificationClause.cs
- X509Utils.cs
- HtmlInputImage.cs
- ModelVisual3D.cs
- DocumentScope.cs
- FrameSecurityDescriptor.cs
- Parameter.cs
- XmlStreamedByteStreamReader.cs
- FontWeights.cs