michael@0: /* vim:set ts=4 sw=4 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsHttpNegotiateAuth_h__ michael@0: #define nsHttpNegotiateAuth_h__ michael@0: michael@0: #include "nsIHttpAuthenticator.h" michael@0: #include "nsIURI.h" michael@0: #include "nsSubstring.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: // The nsHttpNegotiateAuth class provides responses for the GSS-API Negotiate method michael@0: // as specified by Microsoft in draft-brezak-spnego-http-04.txt michael@0: michael@0: class nsHttpNegotiateAuth MOZ_FINAL : public nsIHttpAuthenticator michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIHTTPAUTHENTICATOR michael@0: michael@0: private: michael@0: // returns the value of the given boolean pref michael@0: bool TestBoolPref(const char *pref); michael@0: michael@0: // tests if the host part of an uri is fully qualified michael@0: bool TestNonFqdn(nsIURI *uri); michael@0: michael@0: // returns true if URI is accepted by the list of hosts in the pref michael@0: bool TestPref(nsIURI *, const char *pref); michael@0: michael@0: bool MatchesBaseURI(const nsCSubstring &scheme, michael@0: const nsCSubstring &host, michael@0: int32_t port, michael@0: const char *baseStart, michael@0: const char *baseEnd); michael@0: }; michael@0: #endif /* nsHttpNegotiateAuth_h__ */