Line data Source code
1 : /* vim:set ts=4 sw=4 et cindent: */
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 :
6 : #ifndef nsHttpNegotiateAuth_h__
7 : #define nsHttpNegotiateAuth_h__
8 :
9 : #include "nsIHttpAuthenticator.h"
10 : #include "nsIURI.h"
11 : #include "nsSubstring.h"
12 : #include "mozilla/Attributes.h"
13 : #include "mozilla/LazyIdleThread.h"
14 :
15 : // The nsHttpNegotiateAuth class provides responses for the GSS-API Negotiate method
16 : // as specified by Microsoft in draft-brezak-spnego-http-04.txt
17 :
18 0 : class nsHttpNegotiateAuth final : public nsIHttpAuthenticator
19 : {
20 : public:
21 : NS_DECL_THREADSAFE_ISUPPORTS
22 : NS_DECL_NSIHTTPAUTHENTICATOR
23 :
24 : private:
25 0 : ~nsHttpNegotiateAuth() {}
26 :
27 : // returns the value of the given boolean pref
28 : bool TestBoolPref(const char *pref);
29 :
30 : // tests if the host part of an uri is fully qualified
31 : bool TestNonFqdn(nsIURI *uri);
32 :
33 : // Thread for GenerateCredentialsAsync
34 : RefPtr<mozilla::LazyIdleThread> mNegotiateThread;
35 : };
36 : #endif /* nsHttpNegotiateAuth_h__ */
|