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
- MemoryMappedFile.cs
- Soap12ProtocolReflector.cs
- FillRuleValidation.cs
- MetadataItemEmitter.cs
- PageParserFilter.cs
- ColorConverter.cs
- AmbientProperties.cs
- SafeLocalAllocation.cs
- COM2FontConverter.cs
- WeakEventTable.cs
- UInt16Storage.cs
- FormViewUpdatedEventArgs.cs
- MultipartContentParser.cs
- SchemaType.cs
- Properties.cs
- Focus.cs
- DirectoryObjectSecurity.cs
- Vector3DAnimation.cs
- EncryptedPackage.cs
- CqlErrorHelper.cs
- SoapSchemaImporter.cs
- NTAccount.cs
- DataGridViewImageCell.cs
- SharedHttpTransportManager.cs
- ActiveXHelper.cs
- SqlWebEventProvider.cs
- TextRenderingModeValidation.cs
- ToolStripSystemRenderer.cs
- ScriptModule.cs
- SymDocumentType.cs
- SubqueryRules.cs
- ErrorsHelper.cs
- PhonemeEventArgs.cs
- CommandSet.cs
- AnimationStorage.cs
- FtpWebResponse.cs
- PointCollection.cs
- UnsafeNativeMethods.cs
- LoginViewDesigner.cs
- TextSpanModifier.cs
- UnauthorizedWebPart.cs
- OutputCacheSettingsSection.cs
- DataServiceQueryException.cs
- NavigationProgressEventArgs.cs
- AuthorizationSection.cs
- DeleteBookmarkScope.cs
- DataGridViewRowStateChangedEventArgs.cs
- FontResourceCache.cs
- SoapReflectionImporter.cs
- ProcessThread.cs
- QuaternionAnimation.cs
- GradientStop.cs
- XmlNamespaceDeclarationsAttribute.cs
- HandleTable.cs
- PasswordTextContainer.cs
- ComIntegrationManifestGenerator.cs
- BuilderElements.cs
- BamlTreeUpdater.cs
- NavigateEvent.cs
- AdRotator.cs
- ObjectTag.cs
- GeometryCombineModeValidation.cs
- OleDbInfoMessageEvent.cs
- StsCommunicationException.cs
- LoginViewDesigner.cs
- ThrowHelper.cs
- WebPartConnectionsEventArgs.cs
- IssuedSecurityTokenProvider.cs
- ProgressBarRenderer.cs
- CodeMemberField.cs
- BindValidationContext.cs
- NetMsmqSecurityElement.cs
- FormViewPageEventArgs.cs
- XmlSchemaComplexContent.cs
- SafeProcessHandle.cs
- DesignerVerb.cs
- SystemIPGlobalProperties.cs
- HtmlEncodedRawTextWriter.cs
- FrameDimension.cs
- ConfigXmlSignificantWhitespace.cs
- ProcessModelInfo.cs
- RoutingService.cs
- WebPartTransformer.cs
- TypeConverterHelper.cs
- DtrList.cs
- FloatUtil.cs
- PropertiesTab.cs
- PageThemeBuildProvider.cs
- ControlParameter.cs
- TargetConverter.cs
- PresentationTraceSources.cs
- GatewayIPAddressInformationCollection.cs
- IteratorDescriptor.cs
- ServiceObjectContainer.cs
- Single.cs
- Profiler.cs
- LineServicesRun.cs
- RuntimeHelpers.cs
- ServiceControllerDesigner.cs
- IMembershipProvider.cs