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
- DtdParser.cs
- NavigatorOutput.cs
- _FtpDataStream.cs
- DynamicValidatorEventArgs.cs
- ProfileManager.cs
- PolyLineSegmentFigureLogic.cs
- CodeAttributeArgumentCollection.cs
- IconBitmapDecoder.cs
- DataControlLinkButton.cs
- GeometryCombineModeValidation.cs
- HttpClientCertificate.cs
- Metafile.cs
- PerformanceCounterCategory.cs
- ReversePositionQuery.cs
- ECDsaCng.cs
- GeneralTransform.cs
- TdsValueSetter.cs
- PageEventArgs.cs
- MsmqInputMessage.cs
- Converter.cs
- XmlArrayItemAttribute.cs
- KeyToListMap.cs
- RequestCachePolicyConverter.cs
- PropertyChangeTracker.cs
- XPathSingletonIterator.cs
- Vector3DCollectionConverter.cs
- WebPartDisplayModeEventArgs.cs
- Executor.cs
- CodeCommentStatementCollection.cs
- RegionData.cs
- BitmapSource.cs
- CacheSection.cs
- EmissiveMaterial.cs
- wgx_exports.cs
- ExpressionBinding.cs
- ToolStripContainer.cs
- SiteMapNode.cs
- SHA512.cs
- EncoderExceptionFallback.cs
- NotCondition.cs
- FixedBufferAttribute.cs
- FatalException.cs
- CalendarTable.cs
- TableParaClient.cs
- ConsumerConnectionPoint.cs
- behaviorssection.cs
- ProfileGroupSettings.cs
- BasicViewGenerator.cs
- UnsafeNativeMethods.cs
- HttpInputStream.cs
- DataGridColumnDropSeparator.cs
- XmlDataImplementation.cs
- InstancePersistenceContext.cs
- CompareValidator.cs
- TransformedBitmap.cs
- DataServiceException.cs
- OraclePermission.cs
- PreviewPrintController.cs
- EventLogSession.cs
- Update.cs
- FlowLayout.cs
- Pkcs7Signer.cs
- Repeater.cs
- AdornerLayer.cs
- NamespaceMapping.cs
- ConfigXmlElement.cs
- DbConnectionPoolIdentity.cs
- DataGridRowEventArgs.cs
- SqlNotificationRequest.cs
- StrongTypingException.cs
- PagesSection.cs
- SByteStorage.cs
- ScriptingProfileServiceSection.cs
- WebPartCloseVerb.cs
- KeyGesture.cs
- EntityDataSourceContextCreatedEventArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- PipeSecurity.cs
- PrivateFontCollection.cs
- NetworkStream.cs
- DataGrid.cs
- MediaSystem.cs
- ReachVisualSerializer.cs
- AnchoredBlock.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SqlTransaction.cs
- ParameterElement.cs
- AnnotationHelper.cs
- WebPartConnectionsCancelVerb.cs
- LoadedOrUnloadedOperation.cs
- FontWeights.cs
- Mapping.cs
- TraceHandlerErrorFormatter.cs
- AngleUtil.cs
- ErrorFormatterPage.cs
- BreakRecordTable.cs
- MoveSizeWinEventHandler.cs
- FixedDSBuilder.cs
- DBBindings.cs
- SoapHeaderAttribute.cs