Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/extensions/auth/nsHttpNegotiateAuth.h
Line
Count
Source (jump to first uncovered line)
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 "mozilla/Attributes.h"
12
#include "mozilla/LazyIdleThread.h"
13
14
// The nsHttpNegotiateAuth class provides responses for the GSS-API Negotiate method
15
// as specified by Microsoft in draft-brezak-spnego-http-04.txt
16
17
class nsHttpNegotiateAuth final : public nsIHttpAuthenticator
18
{
19
public:
20
    NS_DECL_THREADSAFE_ISUPPORTS
21
    NS_DECL_NSIHTTPAUTHENTICATOR
22
23
private:
24
0
    ~nsHttpNegotiateAuth() {}
25
26
    // returns the value of the given boolean pref
27
    bool TestBoolPref(const char *pref);
28
29
    // tests if the host part of an uri is fully qualified
30
    bool TestNonFqdn(nsIURI *uri);
31
32
    // Thread for GenerateCredentialsAsync
33
    RefPtr<mozilla::LazyIdleThread> mNegotiateThread;
34
};
35
#endif /* nsHttpNegotiateAuth_h__ */