]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/negotiate/User.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / auth / negotiate / User.h
1 /*
2 * Copyright (C) 1996-2017 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_NEGOTIATE_USER_H
10 #define _SQUID_AUTH_NEGOTIATE_USER_H
11
12 #if HAVE_AUTH_MODULE_NEGOTIATE
13
14 #include "auth/User.h"
15
16 namespace Auth
17 {
18
19 class Config;
20
21 namespace Negotiate
22 {
23
24 /** User credentials for the Negotiate authentication protocol */
25 class User : public Auth::User
26 {
27 MEMPROXY_CLASS(Auth::Negotiate::User);
28
29 public:
30 User(Auth::Config *, const char *requestRealm);
31 virtual ~User();
32 virtual int32_t ttl() const override;
33
34 /* Auth::User API */
35 static CbcPointer<Auth::CredentialsCache> Cache();
36 virtual void addToNameCache() override;
37
38 dlink_list proxy_auth_list;
39 };
40
41 } // namespace Negotiate
42 } // namespace Auth
43
44 #endif /* HAVE_AUTH_MODULE_NEGOTIATE */
45 #endif /* _SQUID_AUTH_NEGOTIATE_USER_H */
46