nsHttpBasicAuth.h 951 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsBasicAuth_h__
  6. #define nsBasicAuth_h__
  7. #include "nsIHttpAuthenticator.h"
  8. namespace mozilla { namespace net {
  9. //-----------------------------------------------------------------------------
  10. // The nsHttpBasicAuth class produces HTTP Basic-auth responses for a username/
  11. // (optional)password pair, BASE64("user:pass").
  12. //-----------------------------------------------------------------------------
  13. class nsHttpBasicAuth : public nsIHttpAuthenticator
  14. {
  15. public:
  16. NS_DECL_ISUPPORTS
  17. NS_DECL_NSIHTTPAUTHENTICATOR
  18. nsHttpBasicAuth();
  19. private:
  20. virtual ~nsHttpBasicAuth();
  21. };
  22. } // namespace net
  23. } // namespace mozilla
  24. #endif // !nsHttpBasicAuth_h__