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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IAuthenticationModule.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.     /// <devdoc>
  18.     /// <para>Provides the base authentication interface for Web client authentication
  19.     /// modules.</para>
  20.     /// </devdoc>
  21.     public interface IAuthenticationModule
  22.     {
  23.         /// <devdoc>
  24.         /// <para>Returns an instance of the <see cref='System.Net.Authorization'/>
  25.         /// class in response to the
  26.         /// authentication challenge from a server.</para>
  27.         /// </devdoc>
  28.         Authorization Authenticate(string challenge, WebRequest request, ICredentials credentials);
  29.        
  30.         /// <devdoc>
  31.         /// <para>Returns an instance of the <see cref='System.Net.Authorization'/> class in response to an
  32.         /// authentication request to a server.</para>
  33.         /// </devdoc>
  34.         Authorization PreAuthenticate(WebRequest request, ICredentials credentials);
  35.        
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Indicates whether the module implementing the interface supports
  39.         /// pre-authentication.
  40.         /// </para>
  41.         /// </devdoc>
  42.         bool CanPreAuthenticate {
  43.             get;
  44.         }
  45.        
  46.         /// <devdoc>
  47.         /// <para>
  48.         /// The authentication scheme used by the host.
  49.         /// .
  50.         /// </para>
  51.         /// </devdoc>
  52.         string AuthenticationType {
  53.             get;
  54.         }
  55.        
  56.     }
  57.     // interface IAuthenticationModule
  58.    
  59. }
  60. // namespace System.Net

Developer Fusion