The Labs \ Source Viewer \ SSCLI \ System.Net \ ICredentials

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ICredentials.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Net
  16. {
  17.    
  18.     //using System;
  19.     //using System.Net;
  20.     using System.Runtime.InteropServices;
  21.    
  22.     //
  23.     // This is an extensible interface that authenticators
  24.     // must implement to support credential lookup.
  25.     // During execution of the protocol, if authentication
  26.     // information is needed the GetCredential function will
  27.     // be called with the host and realm information.
  28.     //
  29.    
  30.     /// <devdoc>
  31.     /// <para>Provides the base authentication interface for Web client authentication.</para>
  32.     /// </devdoc>
  33.     public interface ICredentials
  34.     {
  35.         /// <devdoc>
  36.         /// <para>
  37.         /// Returns a NetworkCredential object that
  38.         /// is associated with the supplied host, realm, and authentication type.
  39.         /// </para>
  40.         /// </devdoc>
  41.        
  42.         //
  43.         // CONVENTION:
  44.         // returns null if no information is available
  45.         // for the specified host&realm
  46.         //
  47.         NetworkCredential GetCredential(Uri uri, string authType);
  48.        
  49.     }
  50.     // interface ICredentials
  51.    
  52. }
  53. // namespace System.Net

Developer Fusion