Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / Authorization.cs / 1 / Authorization.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { ////// public class Authorization { private string m_Message; private bool m_Complete; private string[] m_ProtectionRealm; private string m_ConnectionGroupId; private bool m_MutualAuth; ///Used for handling and completing a custom authorization. ////// public Authorization(string token) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = true; } ////// Creates a new instance of the ///class with the specified /// authorization token. /// /// public Authorization(string token, bool finished) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = finished; } ////// Creates a new instance of the ///class with the specified /// authorization token and completion status. /// /// public Authorization(string token, bool finished, string connectionGroupId): this(token, finished, connectionGroupId, false) { } // internal Authorization(string token, bool finished, string connectionGroupId, bool mutualAuth) { m_Message = ValidationHelper.MakeStringNull(token); m_ConnectionGroupId = ValidationHelper.MakeStringNull(connectionGroupId); m_Complete = finished; m_MutualAuth = mutualAuth; } ////// Creates a new instance of the ///class with the specified /// authorization token, completion status, and connection m_ConnectionGroupId identifier. /// /// public string Message { get { return m_Message;} } // used to specify if this Authorization needs a special private server connection, // identified by this string ///Gets /// the response returned to the server in response to an authentication /// challenge. ////// public string ConnectionGroupId { get { return m_ConnectionGroupId; } } ///[To be supplied.] ////// public bool Complete { get { return m_Complete;} } internal void SetComplete(bool complete) { m_Complete = complete; } ///Gets the completion status of the authorization. ////// public string[] ProtectionRealm { get { return m_ProtectionRealm;} set { string[] newValue = ValidationHelper.MakeEmptyArrayNull(value); m_ProtectionRealm = newValue; } } // // public bool MutuallyAuthenticated { get { return Complete && m_MutualAuth; } set { m_MutualAuth = value; } } } // class Authorization } // namespace System.Net // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets or sets the prefix for Uris that can be authenticated with the ///property. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { ////// public class Authorization { private string m_Message; private bool m_Complete; private string[] m_ProtectionRealm; private string m_ConnectionGroupId; private bool m_MutualAuth; ///Used for handling and completing a custom authorization. ////// public Authorization(string token) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = true; } ////// Creates a new instance of the ///class with the specified /// authorization token. /// /// public Authorization(string token, bool finished) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = finished; } ////// Creates a new instance of the ///class with the specified /// authorization token and completion status. /// /// public Authorization(string token, bool finished, string connectionGroupId): this(token, finished, connectionGroupId, false) { } // internal Authorization(string token, bool finished, string connectionGroupId, bool mutualAuth) { m_Message = ValidationHelper.MakeStringNull(token); m_ConnectionGroupId = ValidationHelper.MakeStringNull(connectionGroupId); m_Complete = finished; m_MutualAuth = mutualAuth; } ////// Creates a new instance of the ///class with the specified /// authorization token, completion status, and connection m_ConnectionGroupId identifier. /// /// public string Message { get { return m_Message;} } // used to specify if this Authorization needs a special private server connection, // identified by this string ///Gets /// the response returned to the server in response to an authentication /// challenge. ////// public string ConnectionGroupId { get { return m_ConnectionGroupId; } } ///[To be supplied.] ////// public bool Complete { get { return m_Complete;} } internal void SetComplete(bool complete) { m_Complete = complete; } ///Gets the completion status of the authorization. ////// public string[] ProtectionRealm { get { return m_ProtectionRealm;} set { string[] newValue = ValidationHelper.MakeEmptyArrayNull(value); m_ProtectionRealm = newValue; } } // // public bool MutuallyAuthenticated { get { return Complete && m_MutualAuth; } set { m_MutualAuth = value; } } } // class Authorization } // namespace System.Net // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets or sets the prefix for Uris that can be authenticated with the ///property.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigXmlSignificantWhitespace.cs
- Number.cs
- DataGridHeaderBorder.cs
- QilLoop.cs
- DataControlButton.cs
- UniqueSet.cs
- WebCategoryAttribute.cs
- UrlPath.cs
- ModifierKeysConverter.cs
- BreakRecordTable.cs
- DataPointer.cs
- ObjectList.cs
- SqlSelectStatement.cs
- updatecommandorderer.cs
- ServicePoint.cs
- RouteValueExpressionBuilder.cs
- Application.cs
- MultiSelector.cs
- NewItemsContextMenuStrip.cs
- UnsignedPublishLicense.cs
- RemoteWebConfigurationHostStream.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- MulticastNotSupportedException.cs
- XmlSchemaAppInfo.cs
- ArrayTypeMismatchException.cs
- DataGridViewCellValueEventArgs.cs
- CodeConditionStatement.cs
- DataBinder.cs
- BufferedGraphics.cs
- Matrix3DStack.cs
- PackageRelationshipSelector.cs
- WebPartHeaderCloseVerb.cs
- DPAPIProtectedConfigurationProvider.cs
- DataPointer.cs
- OleStrCAMarshaler.cs
- DurationConverter.cs
- TemplateControlBuildProvider.cs
- ResourceDisplayNameAttribute.cs
- CodeNamespaceImportCollection.cs
- counter.cs
- QuotedStringWriteStateInfo.cs
- DrawingGroup.cs
- PipelineModuleStepContainer.cs
- DependencyObject.cs
- InstanceDataCollectionCollection.cs
- SharedUtils.cs
- XmlAtomicValue.cs
- KnownBoxes.cs
- CodeChecksumPragma.cs
- ScriptResourceInfo.cs
- KeyValueInternalCollection.cs
- StrongNameIdentityPermission.cs
- KeyedCollection.cs
- TypeReference.cs
- ToolBarPanel.cs
- KeyToListMap.cs
- AttachedAnnotationChangedEventArgs.cs
- AddInProcess.cs
- RegexWriter.cs
- MessagePartDescription.cs
- FormatConvertedBitmap.cs
- ServerIdentity.cs
- LogFlushAsyncResult.cs
- securitycriticaldata.cs
- ServiceDescription.cs
- CompressedStack.cs
- CustomServiceCredentials.cs
- ExtensionQuery.cs
- DatagridviewDisplayedBandsData.cs
- ClientTargetSection.cs
- IsolationInterop.cs
- SafeCryptoHandles.cs
- ListCollectionView.cs
- BamlResourceContent.cs
- SR.cs
- FormViewDeleteEventArgs.cs
- TypeHelper.cs
- ConfigurationException.cs
- AutoGeneratedField.cs
- StringExpressionSet.cs
- KeyboardNavigation.cs
- recordstatescratchpad.cs
- SubMenuStyle.cs
- XmlSchemaChoice.cs
- DataViewSettingCollection.cs
- WhiteSpaceTrimStringConverter.cs
- XslUrlEditor.cs
- WebBrowser.cs
- SecurityUtils.cs
- FirewallWrapper.cs
- TrackBarRenderer.cs
- DeleteMemberBinder.cs
- XmlSchemaException.cs
- XamlSerializerUtil.cs
- SiteMapDataSourceView.cs
- CounterSampleCalculator.cs
- ValueProviderWrapper.cs
- FixedTextPointer.cs
- SecurityTokenAttachmentMode.cs
- ToolStripRendererSwitcher.cs