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
- Substitution.cs
- SymmetricCryptoHandle.cs
- TimerElapsedEvenArgs.cs
- DoubleAnimationUsingPath.cs
- EntityCommandDefinition.cs
- MetadataItemEmitter.cs
- ConstructorBuilder.cs
- ConfigXmlText.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- RequestResizeEvent.cs
- ListChangedEventArgs.cs
- OpacityConverter.cs
- ImageCodecInfoPrivate.cs
- PersonalizablePropertyEntry.cs
- unsafeIndexingFilterStream.cs
- Material.cs
- SevenBitStream.cs
- GestureRecognizer.cs
- UnmanagedMemoryStreamWrapper.cs
- LinkButton.cs
- ObjectDataSource.cs
- SimpleExpression.cs
- WebServiceReceiveDesigner.cs
- XmlnsDictionary.cs
- PagesChangedEventArgs.cs
- ColorConverter.cs
- GetKeyedHashRequest.cs
- TemplatePropertyEntry.cs
- ValidationPropertyAttribute.cs
- ProgressBarBrushConverter.cs
- MenuAdapter.cs
- TransformCollection.cs
- Transform.cs
- ColumnMapVisitor.cs
- XslAst.cs
- MimeReturn.cs
- BindingRestrictions.cs
- CrossSiteScriptingValidation.cs
- ContextDataSourceContextData.cs
- FixedTextView.cs
- ResourceAttributes.cs
- WorkflowServiceAttributes.cs
- Span.cs
- RemotingSurrogateSelector.cs
- VirtualizedContainerService.cs
- ReadOnlyDataSource.cs
- ProgressBar.cs
- WebDisplayNameAttribute.cs
- AnonymousIdentificationSection.cs
- SqlGatherProducedAliases.cs
- PackagingUtilities.cs
- TimelineCollection.cs
- SizeAnimationClockResource.cs
- EdmItemError.cs
- ArrangedElementCollection.cs
- SqlNamer.cs
- FormViewUpdatedEventArgs.cs
- FontFamily.cs
- ChangeNode.cs
- SubMenuStyle.cs
- GeneratedView.cs
- ProjectionPath.cs
- PolygonHotSpot.cs
- ProcessInfo.cs
- ContentPosition.cs
- TableParaClient.cs
- MulticastDelegate.cs
- QueryOutputWriterV1.cs
- WebPartTransformerAttribute.cs
- EncryptedReference.cs
- ExpandedWrapper.cs
- CompModHelpers.cs
- AuthorizationRule.cs
- TemplatePartAttribute.cs
- InvokeMethodActivityDesigner.cs
- IdnElement.cs
- Int32CollectionConverter.cs
- FloatUtil.cs
- ArglessEventHandlerProxy.cs
- HttpWriter.cs
- SymbolEqualComparer.cs
- OpenFileDialog.cs
- SystemNetHelpers.cs
- DataTrigger.cs
- WebErrorHandler.cs
- SendKeys.cs
- KerberosTicketHashIdentifierClause.cs
- Queue.cs
- CallbackException.cs
- DrawingState.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- Token.cs
- HttpCacheVary.cs
- UserControlBuildProvider.cs
- IISMapPath.cs
- QEncodedStream.cs
- BaseDataBoundControl.cs
- HtmlHistory.cs
- MimeTypeMapper.cs
- PeerInvitationResponse.cs