Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DetailsViewActionList.cs
- StringUtil.cs
- EditCommandColumn.cs
- PropertyPanel.cs
- SqlNamer.cs
- CodeAssignStatement.cs
- ExpandedWrapper.cs
- IPGlobalProperties.cs
- TextEditorCharacters.cs
- PopOutPanel.cs
- WebSysDisplayNameAttribute.cs
- CopyNodeSetAction.cs
- XmlILOptimizerVisitor.cs
- FlowDocumentScrollViewer.cs
- PersonalizationStateInfo.cs
- CompilationSection.cs
- TextBounds.cs
- localization.cs
- CompilerTypeWithParams.cs
- WindowVisualStateTracker.cs
- cookieexception.cs
- IPAddressCollection.cs
- TemplateContentLoader.cs
- HtmlTernaryTree.cs
- FontFamilyConverter.cs
- BufferAllocator.cs
- DelimitedListTraceListener.cs
- ClientSettingsStore.cs
- ErrorEventArgs.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- StateMachineSubscription.cs
- Vector3DAnimationBase.cs
- SQLDoubleStorage.cs
- TraceUtility.cs
- TogglePatternIdentifiers.cs
- RefreshPropertiesAttribute.cs
- XmlSerializableServices.cs
- PerformanceCounterNameAttribute.cs
- ClientUrlResolverWrapper.cs
- ZipIOCentralDirectoryBlock.cs
- OrderedDictionaryStateHelper.cs
- UIElement3D.cs
- CodeMemberProperty.cs
- ImportOptions.cs
- SoundPlayerAction.cs
- HtmlTernaryTree.cs
- MD5CryptoServiceProvider.cs
- CustomTypeDescriptor.cs
- DataRecordObjectView.cs
- QueryOperator.cs
- SettingsPropertyCollection.cs
- WriteTimeStream.cs
- NativeMethods.cs
- OleDbPermission.cs
- ArrayMergeHelper.cs
- COM2PropertyDescriptor.cs
- DataSourceXmlTextReader.cs
- Win32.cs
- BulletChrome.cs
- WSUtilitySpecificationVersion.cs
- UrlMappingsModule.cs
- MissingManifestResourceException.cs
- PersonalizationProvider.cs
- DataKeyCollection.cs
- NavigationEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- storagemappingitemcollection.viewdictionary.cs
- SQLBytes.cs
- RotateTransform3D.cs
- XPathNodeInfoAtom.cs
- OracleLob.cs
- BufferModesCollection.cs
- ToolStripOverflow.cs
- MappingException.cs
- QuotedStringFormatReader.cs
- OdbcConnectionPoolProviderInfo.cs
- InstanceDataCollection.cs
- FormViewCommandEventArgs.cs
- XmlText.cs
- BinHexDecoder.cs
- AnonymousIdentificationModule.cs
- HeaderedItemsControl.cs
- DBSchemaRow.cs
- ClientType.cs
- FixedSOMFixedBlock.cs
- AdjustableArrowCap.cs
- TransactionOptions.cs
- WindowsHyperlink.cs
- DynamicPropertyHolder.cs
- ToolStripLabel.cs
- Parameter.cs
- ProgressiveCrcCalculatingStream.cs
- SkewTransform.cs
- tooltip.cs
- FormViewModeEventArgs.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataGridViewRowCancelEventArgs.cs
- SrgsElementFactory.cs
- EventLogTraceListener.cs
- ViewStateException.cs