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
- WebPartManager.cs
- SingleConverter.cs
- EventHandlerList.cs
- HeaderLabel.cs
- XmlEntityReference.cs
- TextOutput.cs
- SafeHandles.cs
- EnvelopedPkcs7.cs
- SessionStateContainer.cs
- BackgroundFormatInfo.cs
- DataGridViewCellStateChangedEventArgs.cs
- ButtonChrome.cs
- DomNameTable.cs
- SqlDeflator.cs
- DataViewSetting.cs
- TdsParserHelperClasses.cs
- Region.cs
- GradientStop.cs
- ToolboxItem.cs
- Currency.cs
- JoinGraph.cs
- MeasurementDCInfo.cs
- DependencyPropertyValueSerializer.cs
- BypassElementCollection.cs
- TCPClient.cs
- FixedSOMTableRow.cs
- UnmanagedMemoryStream.cs
- Propagator.JoinPropagator.cs
- ReferentialConstraint.cs
- PropertyItemInternal.cs
- SamlAdvice.cs
- SiteMapNodeItemEventArgs.cs
- RelOps.cs
- IUnknownConstantAttribute.cs
- ProgramPublisher.cs
- ResXDataNode.cs
- DynamicQueryableWrapper.cs
- SinglePageViewer.cs
- ColorBlend.cs
- HMACSHA512.cs
- ImageBrush.cs
- ComponentSerializationService.cs
- CompoundFileStreamReference.cs
- ExpandoClass.cs
- HtmlProps.cs
- KnownIds.cs
- SystemResourceHost.cs
- CryptographicAttribute.cs
- GridViewDeletedEventArgs.cs
- ItemMap.cs
- BindingCollection.cs
- ObjectMemberMapping.cs
- BCryptNative.cs
- WebServiceReceive.cs
- ItemCollection.cs
- Matrix3DConverter.cs
- SafeArrayRankMismatchException.cs
- AuthenticationException.cs
- MenuItemBinding.cs
- PropertyEmitter.cs
- KeyGesture.cs
- FloaterParagraph.cs
- ToolStripItem.cs
- FieldBuilder.cs
- SourceItem.cs
- DropDownButton.cs
- AutomationIdentifier.cs
- MenuAutomationPeer.cs
- DayRenderEvent.cs
- MembershipSection.cs
- AnonymousIdentificationSection.cs
- AutomationPeer.cs
- ViewSimplifier.cs
- ErrorInfoXmlDocument.cs
- DataRelation.cs
- Buffer.cs
- HashCodeCombiner.cs
- OdbcHandle.cs
- LinkTarget.cs
- ElementsClipboardData.cs
- FlowDocumentPage.cs
- SocketInformation.cs
- Error.cs
- followingsibling.cs
- SafeCertificateStore.cs
- DataGridViewRowsRemovedEventArgs.cs
- FilterQuery.cs
- XomlCompilerHelpers.cs
- webproxy.cs
- HandleExceptionArgs.cs
- TextEffectCollection.cs
- PenLineCapValidation.cs
- CommandConverter.cs
- IndexOutOfRangeException.cs
- VersionedStreamOwner.cs
- ConnectionManagementElement.cs
- Deserializer.cs
- MenuCommand.cs
- Expression.cs
- IgnoreSectionHandler.cs