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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScriptResourceAttribute.cs
- DataGridViewImageColumn.cs
- EntityTypeEmitter.cs
- StringExpressionSet.cs
- SiteMapNodeItemEventArgs.cs
- TransformDescriptor.cs
- InvariantComparer.cs
- FileUtil.cs
- StorageFunctionMapping.cs
- DataGridViewDataErrorEventArgs.cs
- ObjectStateFormatter.cs
- HttpWebRequest.cs
- VisualStyleRenderer.cs
- XmlNamespaceManager.cs
- Lasso.cs
- SerializationHelper.cs
- SystemInformation.cs
- SecurityDescriptor.cs
- BorderGapMaskConverter.cs
- WS2007FederationHttpBindingElement.cs
- SafeCoTaskMem.cs
- ImageIndexConverter.cs
- SchemaElementLookUpTableEnumerator.cs
- ScrollItemProviderWrapper.cs
- UrlPath.cs
- StateFinalizationActivity.cs
- SqlCacheDependency.cs
- SqlCacheDependencySection.cs
- CollectionEditorDialog.cs
- DescendentsWalkerBase.cs
- QueryComponents.cs
- HttpPostLocalhostServerProtocol.cs
- SoapFault.cs
- InvalidEnumArgumentException.cs
- FixedTextSelectionProcessor.cs
- DictionarySurrogate.cs
- UnsafeNativeMethods.cs
- TransformGroup.cs
- QualificationDataItem.cs
- XmlAttributeProperties.cs
- SelectionService.cs
- IisTraceListener.cs
- ScaleTransform.cs
- BinarySecretKeyIdentifierClause.cs
- Directory.cs
- Geometry3D.cs
- ActivityTypeCodeDomSerializer.cs
- TrackingConditionCollection.cs
- ToolBarButtonClickEvent.cs
- IriParsingElement.cs
- ObjectStateManager.cs
- CollectionChangeEventArgs.cs
- WindowInteropHelper.cs
- InlineObject.cs
- ImagingCache.cs
- TextServicesContext.cs
- SetStoryboardSpeedRatio.cs
- DisplayNameAttribute.cs
- XPathItem.cs
- CollectionsUtil.cs
- GrammarBuilder.cs
- AttributeEmitter.cs
- TextCollapsingProperties.cs
- AnimationException.cs
- Object.cs
- GatewayIPAddressInformationCollection.cs
- DuplexChannelBinder.cs
- BindingMAnagerBase.cs
- MarkupCompiler.cs
- typedescriptorpermission.cs
- ViewEvent.cs
- CheckBoxBaseAdapter.cs
- DataControlButton.cs
- MediaPlayer.cs
- ResourceReader.cs
- WindowsListViewSubItem.cs
- EncoderNLS.cs
- PermissionSet.cs
- WeakHashtable.cs
- File.cs
- FormsAuthentication.cs
- TextSpan.cs
- IteratorFilter.cs
- DataGridViewMethods.cs
- LineBreak.cs
- SecurityAppliedMessage.cs
- SoapInteropTypes.cs
- AssemblyResourceLoader.cs
- TableItemProviderWrapper.cs
- PassportPrincipal.cs
- ColorTypeConverter.cs
- Effect.cs
- PTManager.cs
- HandlerBase.cs
- AppDomainFactory.cs
- GenericEnumerator.cs
- SqlPersistenceProviderFactory.cs
- UntrustedRecipientException.cs
- PopOutPanel.cs
- StorageInfo.cs