]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/Scheme.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / auth / ntlm / Scheme.h
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_AUTH_NTLM_SCHEME_H
10 #define SQUID_AUTH_NTLM_SCHEME_H
11
12 #if HAVE_AUTH_MODULE_NTLM
13
14 #include "auth/Scheme.h"
15
16 namespace Auth
17 {
18 namespace Ntlm
19 {
20
21 /// \ingroup AuthSchemeAPI
22 /// \ingroup AuthAPI
23 class Scheme : public Auth::Scheme
24 {
25
26 public:
27 static Auth::Scheme::Pointer GetInstance();
28 Scheme() {};
29 virtual ~Scheme() {};
30
31 /* per scheme */
32 virtual char const *type() const;
33 virtual void shutdownCleanup();
34 virtual Auth::Config *createConfig();
35
36 /* Not implemented */
37 Scheme (Scheme const &);
38 Scheme &operator=(Scheme const &);
39
40 private:
41 /**
42 * Main instance of this authentication Scheme.
43 * NULL when the scheme is not being used.
44 */
45 static Auth::Scheme::Pointer _instance;
46 };
47
48 } // namespace Ntlm
49 } // namespace Auth
50
51 #endif /* HAVE_AUTH_MODULE_NTLM */
52 #endif /* SQUID_AUTH_NTLM_SCHEME_H */
53