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
- Transform.cs
- EntityTypeBase.cs
- Error.cs
- SslStream.cs
- XmlSchemaSimpleTypeUnion.cs
- DataFieldConverter.cs
- XmlSchemaExporter.cs
- AsyncOperationManager.cs
- TemplateInstanceAttribute.cs
- JapaneseCalendar.cs
- CatalogPartCollection.cs
- DbConnectionPoolOptions.cs
- RuleInfoComparer.cs
- XmlBaseWriter.cs
- SvcFileManager.cs
- StreamingContext.cs
- AppSettingsSection.cs
- RemotingConfiguration.cs
- PeerEndPoint.cs
- ExpressionLexer.cs
- DbFunctionCommandTree.cs
- SQLStringStorage.cs
- ClientRuntimeConfig.cs
- CultureInfo.cs
- Crc32.cs
- WindowsPrincipal.cs
- ProtocolsConfigurationEntry.cs
- ResourceDescriptionAttribute.cs
- LinqDataSourceEditData.cs
- CatalogPartCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- TextWriter.cs
- HtmlTableCell.cs
- dbdatarecord.cs
- PathParser.cs
- ClientConfigPaths.cs
- CompModSwitches.cs
- NetworkInformationPermission.cs
- DataRelationPropertyDescriptor.cs
- AssertFilter.cs
- Nullable.cs
- HtmlInputSubmit.cs
- ColumnResizeUndoUnit.cs
- AspNetSynchronizationContext.cs
- MonthChangedEventArgs.cs
- Line.cs
- DateBoldEvent.cs
- Helper.cs
- WebEncodingValidator.cs
- PropertyMapper.cs
- BindingSource.cs
- QuaternionRotation3D.cs
- ProgressBarRenderer.cs
- Helpers.cs
- BmpBitmapDecoder.cs
- SwitchCase.cs
- OdbcException.cs
- ProtectedProviderSettings.cs
- CancellationState.cs
- DictionarySectionHandler.cs
- RenderDataDrawingContext.cs
- SubMenuStyle.cs
- basecomparevalidator.cs
- CodeDirectiveCollection.cs
- WebScriptEndpointElement.cs
- RightsManagementEncryptedStream.cs
- MetafileHeaderWmf.cs
- IdentityReference.cs
- DaylightTime.cs
- ViewCellSlot.cs
- GatewayIPAddressInformationCollection.cs
- MimeObjectFactory.cs
- MethodInfo.cs
- ArgumentsParser.cs
- Comparer.cs
- ContainerUIElement3D.cs
- BookmarkResumptionRecord.cs
- TransformPatternIdentifiers.cs
- FrameworkElementAutomationPeer.cs
- DataBoundControlActionList.cs
- HtmlContainerControl.cs
- DateTimeConstantAttribute.cs
- SortFieldComparer.cs
- DataPagerFieldCommandEventArgs.cs
- EdmEntityTypeAttribute.cs
- XmlUtf8RawTextWriter.cs
- smtpconnection.cs
- TogglePattern.cs
- XmlElement.cs
- TypeDescriptionProvider.cs
- WindowsScrollBar.cs
- MenuItemStyleCollection.cs
- SimpleType.cs
- HttpProfileBase.cs
- Visual3DCollection.cs
- IgnoreDataMemberAttribute.cs
- RowUpdatingEventArgs.cs
- _DomainName.cs
- PermissionAttributes.cs
- XmlSchemaAttributeGroupRef.cs