Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAuthorizationDecisionClaimResource.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LineUtil.cs
- WindowAutomationPeer.cs
- IdentifierService.cs
- ListenerConnectionModeReader.cs
- ForeignKeyConstraint.cs
- WebHttpBinding.cs
- DeclaredTypeValidatorAttribute.cs
- JoinCqlBlock.cs
- ChildTable.cs
- HttpBrowserCapabilitiesWrapper.cs
- WindowsContainer.cs
- XPathNavigatorReader.cs
- OutputScope.cs
- FlowDocumentPage.cs
- StringBlob.cs
- SendMessageRecord.cs
- DrawToolTipEventArgs.cs
- SqlTriggerContext.cs
- LostFocusEventManager.cs
- Monitor.cs
- ObjectSelectorEditor.cs
- ProviderCommandInfoUtils.cs
- DocumentPageView.cs
- WorkflowServiceAttributesTypeConverter.cs
- DocumentApplicationJournalEntryEventArgs.cs
- Encoder.cs
- ExpressionDumper.cs
- EntityCommandExecutionException.cs
- NotConverter.cs
- CodeTypeDelegate.cs
- HashUtility.cs
- XPathDocumentNavigator.cs
- TextEndOfSegment.cs
- DefaultWorkflowLoaderService.cs
- ClientScriptManager.cs
- UInt16.cs
- BamlCollectionHolder.cs
- RewritingSimplifier.cs
- XmlNamespaceMapping.cs
- Triplet.cs
- HtmlInputControl.cs
- BitmapSizeOptions.cs
- ServicesUtilities.cs
- DBCommandBuilder.cs
- WindowsSysHeader.cs
- WebHeaderCollection.cs
- WinInet.cs
- milexports.cs
- FixedTextContainer.cs
- TextBox.cs
- ConfigurationManager.cs
- _NetRes.cs
- NumericExpr.cs
- RemotingHelper.cs
- HttpWebRequest.cs
- KeyValuePair.cs
- WebPartMenu.cs
- TCPClient.cs
- PenThread.cs
- CultureInfo.cs
- UIPropertyMetadata.cs
- NameValueFileSectionHandler.cs
- UnmanagedMemoryStreamWrapper.cs
- SimpleTypeResolver.cs
- XPathPatternParser.cs
- DataBoundControl.cs
- DefaultValueTypeConverter.cs
- ExpressionBindings.cs
- ReaderContextStackData.cs
- FileSystemEnumerable.cs
- PatternMatcher.cs
- MsdtcWrapper.cs
- PropertyGridEditorPart.cs
- RegistryKey.cs
- HttpRuntimeSection.cs
- Int64.cs
- Util.cs
- ProviderConnectionPointCollection.cs
- PartBasedPackageProperties.cs
- PerspectiveCamera.cs
- StrokeCollectionConverter.cs
- ViewSimplifier.cs
- CountAggregationOperator.cs
- HMAC.cs
- FileLevelControlBuilderAttribute.cs
- SkinIDTypeConverter.cs
- NavigationHelper.cs
- BitmapCodecInfoInternal.cs
- EnvironmentPermission.cs
- XmlText.cs
- GPStream.cs
- Matrix.cs
- StateManagedCollection.cs
- PassportAuthentication.cs
- SynchronousChannel.cs
- EntityException.cs
- NonSerializedAttribute.cs
- Models.cs
- CharUnicodeInfo.cs
- ObjectIDGenerator.cs