Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthorizationDecisionClaimResource.cs / 1305376 / SamlAuthorizationDecisionClaimResource.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System; using System.Collections.Generic; using System.IdentityModel.Claims; using System.Runtime.Serialization; using System.Text; [DataContract] public class SamlAuthorizationDecisionClaimResource { [DataMember] string resource; [DataMember] SamlAccessDecision accessDecision; [DataMember] string actionNamespace; [DataMember] string actionName; [OnDeserialized] void OnDeserialized(StreamingContext ctx) { if (String.IsNullOrEmpty(resource)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); if (String.IsNullOrEmpty(actionName)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName"); } public SamlAuthorizationDecisionClaimResource(string resource, SamlAccessDecision accessDecision, string actionNamespace, string actionName) { if (String.IsNullOrEmpty(resource)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("resource"); if (String.IsNullOrEmpty(actionName)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actionName"); this.resource = resource; this.accessDecision = accessDecision; this.actionNamespace = actionNamespace; this.actionName = actionName; } public string Resource { get { return this.resource; } } public SamlAccessDecision AccessDecision { get { return this.accessDecision; } } public string ActionNamespace { get { return this.actionNamespace; } } public string ActionName { get { return this.actionName; } } public override bool Equals(object obj) { if (obj == null) return false; if (ReferenceEquals(this, obj)) return true; SamlAuthorizationDecisionClaimResource rhs = obj as SamlAuthorizationDecisionClaimResource; if (rhs == null) return false; return ((this.ActionName == rhs.ActionName) && (this.ActionNamespace == rhs.ActionNamespace) && (this.Resource == rhs.Resource) && (this.AccessDecision == rhs.AccessDecision)); } public override int GetHashCode() { return (this.resource.GetHashCode() ^ this.accessDecision.GetHashCode()); } } } // 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
- SqlAggregateChecker.cs
- DataPagerCommandEventArgs.cs
- DrawingServices.cs
- SyndicationCategory.cs
- SortQuery.cs
- _FtpControlStream.cs
- SvcMapFileLoader.cs
- InkCanvasFeedbackAdorner.cs
- ScrollViewer.cs
- DBConnection.cs
- SystemInformation.cs
- unsafeIndexingFilterStream.cs
- ReferentialConstraint.cs
- XpsFixedPageReaderWriter.cs
- MetadataCollection.cs
- HtmlWindowCollection.cs
- ResourceBinder.cs
- PageHandlerFactory.cs
- CancelEventArgs.cs
- EventProvider.cs
- IgnoreSection.cs
- ToolStripContentPanel.cs
- CapacityStreamGeometryContext.cs
- WindowsFormsLinkLabel.cs
- DesignTimeXamlWriter.cs
- ResourceIDHelper.cs
- XmlQualifiedName.cs
- WindowsFormsLinkLabel.cs
- _SingleItemRequestCache.cs
- BezierSegment.cs
- BooleanExpr.cs
- path.cs
- DataTableExtensions.cs
- Select.cs
- VisualTreeUtils.cs
- SafeFindHandle.cs
- OpCodes.cs
- OdbcConnectionString.cs
- ThreadPool.cs
- PeerNameResolver.cs
- _emptywebproxy.cs
- XPathNavigatorReader.cs
- CriticalExceptions.cs
- DataServiceContext.cs
- RemotingClientProxy.cs
- AssemblyBuilder.cs
- Light.cs
- CqlBlock.cs
- XmlEnumAttribute.cs
- _ConnectionGroup.cs
- BmpBitmapDecoder.cs
- TimeSpanValidatorAttribute.cs
- DocumentSchemaValidator.cs
- TransformerInfoCollection.cs
- PresentationAppDomainManager.cs
- ManagementClass.cs
- DispatcherObject.cs
- GroupItemAutomationPeer.cs
- SupportsPreviewControlAttribute.cs
- VSDExceptions.cs
- ObjectListShowCommandsEventArgs.cs
- AssemblyBuilder.cs
- basenumberconverter.cs
- ConnectionsZone.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlSerializationWriter.cs
- JavaScriptString.cs
- BulletDecorator.cs
- TransactionFlowAttribute.cs
- IconHelper.cs
- AlternateView.cs
- WebResourceUtil.cs
- ApplyTemplatesAction.cs
- RegistrationServices.cs
- PermissionSet.cs
- ParallelEnumerable.cs
- FunctionDescription.cs
- ImageDrawing.cs
- LOSFormatter.cs
- TextLineBreak.cs
- StandardBindingCollectionElement.cs
- DbQueryCommandTree.cs
- RtfFormatStack.cs
- RemotingSurrogateSelector.cs
- TransformerConfigurationWizardBase.cs
- ExceptionCollection.cs
- ClientSession.cs
- DefaultEventAttribute.cs
- Utility.cs
- HiddenField.cs
- XpsDigitalSignature.cs
- NamedPipeTransportElement.cs
- DoubleCollectionValueSerializer.cs
- ColumnResult.cs
- StylusSystemGestureEventArgs.cs
- DragEvent.cs
- DeferredRunTextReference.cs
- MenuItemStyleCollection.cs
- CreateUserWizardDesigner.cs
- GenericsInstances.cs