Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / RelAssertionDirectKeyIdentifierClause.cs / 1 / RelAssertionDirectKeyIdentifierClause.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Tokens; using System.ServiceModel; using System.ServiceModel.Security.Tokens; class RelAssertionDirectKeyIdentifierClause : SecurityKeyIdentifierClause { string assertionId; public RelAssertionDirectKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength) : base(null, derivationNonce, derivationLength) { if (string.IsNullOrEmpty(assertionId)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.AssertionIdCannotBeNullOrEmpty)); } this.assertionId = assertionId; } public string AssertionId { get { return this.assertionId; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { RelAssertionDirectKeyIdentifierClause that = keyIdentifierClause as RelAssertionDirectKeyIdentifierClause; // 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.AssertionId == 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
- HandlerBase.cs
- Util.cs
- ResourceExpressionBuilder.cs
- ADMembershipUser.cs
- OrderedHashRepartitionStream.cs
- StringReader.cs
- XpsFixedDocumentReaderWriter.cs
- DocumentPage.cs
- PropertyTabChangedEvent.cs
- CompressStream.cs
- DataRecord.cs
- NavigationHelper.cs
- BamlBinaryReader.cs
- ReferentialConstraint.cs
- DataGridViewButtonCell.cs
- RsaSecurityTokenAuthenticator.cs
- BaseEntityWrapper.cs
- DbParameterCollectionHelper.cs
- TextInfo.cs
- RoleGroupCollection.cs
- ChannelPoolSettings.cs
- RegexWorker.cs
- ScriptBehaviorDescriptor.cs
- WriteTimeStream.cs
- HtmlWindowCollection.cs
- XmlMemberMapping.cs
- NativeMethods.cs
- TransportChannelListener.cs
- SmiTypedGetterSetter.cs
- ObjectAssociationEndMapping.cs
- ExternalFile.cs
- figurelengthconverter.cs
- basecomparevalidator.cs
- OperationCanceledException.cs
- DesignerView.xaml.cs
- ADMembershipUser.cs
- NotCondition.cs
- AutomationAttributeInfo.cs
- HighContrastHelper.cs
- prompt.cs
- mediapermission.cs
- ColumnBinding.cs
- DaylightTime.cs
- StrongNameIdentityPermission.cs
- GroupBoxDesigner.cs
- glyphs.cs
- MailMessage.cs
- UInt16Converter.cs
- DatagridviewDisplayedBandsData.cs
- ResizeBehavior.cs
- WebPartDisplayModeCancelEventArgs.cs
- ToolboxItemCollection.cs
- EmptyEnumerable.cs
- HtmlInputCheckBox.cs
- SecurityPermission.cs
- ConfigurationElementCollection.cs
- _SingleItemRequestCache.cs
- PowerStatus.cs
- HttpException.cs
- UIElementHelper.cs
- EntityDataSourceContainerNameItem.cs
- BaseUriHelper.cs
- ObjectQueryExecutionPlan.cs
- XamlTreeBuilder.cs
- BoolExpr.cs
- ClientConfigurationHost.cs
- CrossSiteScriptingValidation.cs
- CryptoProvider.cs
- ObjectListShowCommandsEventArgs.cs
- MetafileHeader.cs
- SelectionList.cs
- DataSetViewSchema.cs
- OracleLob.cs
- MenuStrip.cs
- ExpandSegmentCollection.cs
- XamlParser.cs
- XmlQueryCardinality.cs
- wgx_exports.cs
- PageContentAsyncResult.cs
- PrinterSettings.cs
- MD5.cs
- Evidence.cs
- SqlNotificationRequest.cs
- GenericTypeParameterBuilder.cs
- MetadataArtifactLoaderCompositeFile.cs
- FixedTextPointer.cs
- IgnoreFileBuildProvider.cs
- NavigationExpr.cs
- AdditionalEntityFunctions.cs
- SchemaTypeEmitter.cs
- TrustManagerPromptUI.cs
- Timer.cs
- basecomparevalidator.cs
- PrivilegeNotHeldException.cs
- HttpResponseHeader.cs
- DataBindingValueUIHandler.cs
- TemplateBuilder.cs
- PartitionedStreamMerger.cs
- DataGridViewCellValueEventArgs.cs
- FastPropertyAccessor.cs