Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.NetGets 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
- SecurityKeyIdentifierClause.cs
- DeferredReference.cs
- UrlPath.cs
- SessionStateItemCollection.cs
- SQLRoleProvider.cs
- InstanceCreationEditor.cs
- DataTableReaderListener.cs
- __ComObject.cs
- ScrollPatternIdentifiers.cs
- WebBrowserSiteBase.cs
- Sorting.cs
- GridViewRowCollection.cs
- WebBrowserSiteBase.cs
- CheckBox.cs
- CreateUserErrorEventArgs.cs
- tooltip.cs
- SvcMapFile.cs
- KeyInstance.cs
- MeasurementDCInfo.cs
- ListDataBindEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- TargetPerspective.cs
- PartBasedPackageProperties.cs
- TabControlAutomationPeer.cs
- DefaultProxySection.cs
- Resources.Designer.cs
- IdleTimeoutMonitor.cs
- AvTraceDetails.cs
- MenuItem.cs
- HttpCachePolicyElement.cs
- ReflectionServiceProvider.cs
- MultiSelectRootGridEntry.cs
- SinglePhaseEnlistment.cs
- CustomAttributeFormatException.cs
- DesignerLoader.cs
- CollectionChangeEventArgs.cs
- ContractSearchPattern.cs
- Win32Interop.cs
- BindingCompleteEventArgs.cs
- SystemException.cs
- AsyncOperationManager.cs
- ToolStripItemTextRenderEventArgs.cs
- BlockUIContainer.cs
- KnownTypesHelper.cs
- CryptoApi.cs
- ScriptControlManager.cs
- WebRequestModuleElementCollection.cs
- AssemblySettingAttributes.cs
- SplitContainer.cs
- ScalarType.cs
- SerializableAttribute.cs
- PassportAuthenticationEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- KnownColorTable.cs
- COSERVERINFO.cs
- TableLayoutRowStyleCollection.cs
- Rect3DConverter.cs
- FieldTemplateUserControl.cs
- HtmlFormParameterReader.cs
- SolidColorBrush.cs
- CreateUserWizard.cs
- UIElementPropertyUndoUnit.cs
- KeyConverter.cs
- NameNode.cs
- ResolveMatchesCD1.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MsmqAppDomainProtocolHandler.cs
- BindingList.cs
- DataTemplateSelector.cs
- ComponentSerializationService.cs
- ListViewItemEventArgs.cs
- FixedNode.cs
- SelectionProviderWrapper.cs
- AnnotationComponentChooser.cs
- GlobalProxySelection.cs
- ListViewGroup.cs
- Vector3DAnimationBase.cs
- ScrollData.cs
- SoapInteropTypes.cs
- View.cs
- UnsupportedPolicyOptionsException.cs
- FilePrompt.cs
- ConsoleKeyInfo.cs
- OleDbEnumerator.cs
- DataGridViewColumnEventArgs.cs
- CoreChannel.cs
- RotationValidation.cs
- GradientBrush.cs
- CodeTypeReferenceExpression.cs
- CheckedPointers.cs
- CardSpaceShim.cs
- DoubleLink.cs
- DataServiceQueryException.cs
- SecurityState.cs
- SqlParameterCollection.cs
- DbMetaDataColumnNames.cs
- ApplicationProxyInternal.cs
- WmlCalendarAdapter.cs
- ColumnMapTranslator.cs
- ConfigurationValue.cs