IAuthenticationModule.cs 611 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // System.Net.IAuthenticationModule.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. namespace System.Net {
  10. // <remarks>
  11. // Authentication interface for Web client authentication modules.
  12. // </remarks>
  13. public interface IAuthenticationModule {
  14. string AuthenticationType {
  15. get;
  16. }
  17. bool CanPreAuthenticate {
  18. get;
  19. }
  20. bool CanRespond (string challenge);
  21. Authorization PreAuthenticate (WebRequest request, ICredentials credentials);
  22. Authorization Respond (string challenge, WebRequest request, ICredentials credentials);
  23. }
  24. }