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
- PerformanceCounterPermissionAttribute.cs
- base64Transforms.cs
- XPathAncestorIterator.cs
- TargetConverter.cs
- InnerItemCollectionView.cs
- AliasGenerator.cs
- HostingEnvironment.cs
- SymDocumentType.cs
- Query.cs
- HtmlElementCollection.cs
- StreamUpdate.cs
- DoubleAnimationUsingPath.cs
- EnumerableCollectionView.cs
- Package.cs
- PanelContainerDesigner.cs
- SuppressIldasmAttribute.cs
- JavaScriptSerializer.cs
- TextEditorTables.cs
- _ContextAwareResult.cs
- NotSupportedException.cs
- ResXResourceReader.cs
- TextMarkerSource.cs
- SqlFunctionAttribute.cs
- Viewport2DVisual3D.cs
- SubclassTypeValidatorAttribute.cs
- DesignerImageAdapter.cs
- XmlQueryStaticData.cs
- DaylightTime.cs
- SafeFindHandle.cs
- RtfFormatStack.cs
- LinkLabelLinkClickedEvent.cs
- StreamSecurityUpgradeAcceptor.cs
- VirtualDirectoryMapping.cs
- ForeignKeyConstraint.cs
- CellTreeNode.cs
- Brush.cs
- GlobalAclOperationRequirement.cs
- BuilderPropertyEntry.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DesignerActionUIStateChangeEventArgs.cs
- XmlBaseReader.cs
- PersonalizationStateInfoCollection.cs
- LoopExpression.cs
- RootBrowserWindowAutomationPeer.cs
- RequiredAttributeAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- XmlnsPrefixAttribute.cs
- MetafileHeaderWmf.cs
- UnmanagedBitmapWrapper.cs
- CodeDOMProvider.cs
- AddingNewEventArgs.cs
- SHA384.cs
- WebPartHeaderCloseVerb.cs
- TextFormatterHost.cs
- XamlBrushSerializer.cs
- HostingEnvironment.cs
- ToolStripSplitButton.cs
- DbProviderFactory.cs
- FlowDocumentReaderAutomationPeer.cs
- TraceSource.cs
- TablePattern.cs
- DPCustomTypeDescriptor.cs
- EdmProperty.cs
- NullReferenceException.cs
- TranslateTransform3D.cs
- HMACSHA512.cs
- ArgumentNullException.cs
- ForeignConstraint.cs
- ConsoleKeyInfo.cs
- AuthorizationSection.cs
- OperationContractAttribute.cs
- SelectionProviderWrapper.cs
- GridToolTip.cs
- TemplateXamlTreeBuilder.cs
- LinqDataSourceSelectEventArgs.cs
- ObjectHandle.cs
- FaultContext.cs
- DesignerLoader.cs
- RadioButtonPopupAdapter.cs
- SoapCodeExporter.cs
- WebPartCancelEventArgs.cs
- XamlRtfConverter.cs
- XDRSchema.cs
- QilDataSource.cs
- FactoryMaker.cs
- SecurityElement.cs
- PropertyBuilder.cs
- PixelShader.cs
- WebPartZoneBase.cs
- SplayTreeNode.cs
- CustomDictionarySources.cs
- DebugInfoGenerator.cs
- PrinterResolution.cs
- FilteredAttributeCollection.cs
- XmlCharCheckingWriter.cs
- OdbcCommandBuilder.cs
- DocumentGridPage.cs
- WebMessageEncoderFactory.cs
- KerberosTokenFactoryCredential.cs
- RequestTimeoutManager.cs