]> 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-2015 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 #include "auth/Scheme.h"
13
14 namespace Auth
15 {
16 namespace Ntlm
17 {
18
19 /// \ingroup AuthSchemeAPI
20 /// \ingroup AuthAPI
21 class Scheme : public Auth::Scheme
22 {
23
24 public:
25 static Auth::Scheme::Pointer GetInstance();
26 Scheme() {};
27 virtual ~Scheme() {};
28
29 /* per scheme */
30 virtual char const *type() const;
31 virtual void shutdownCleanup();
32 virtual Auth::Config *createConfig();
33
34 /* Not implemented */
35 Scheme (Scheme const &);
36 Scheme &operator=(Scheme const &);
37
38 private:
39 /**
40 * Main instance of this authentication Scheme.
41 * NULL when the scheme is not being used.
42 */
43 static Auth::Scheme::Pointer _instance;
44 };
45
46 } // namespace Ntlm
47 } // namespace Auth
48
49 #endif /* SQUID_AUTH_NTLM_SCHEME_H */
50