-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathUser.h
More file actions
58 lines (42 loc) · 1.22 KB
/
User.h
File metadata and controls
58 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef SQUID_SRC_AUTH_BASIC_USER_H
#define SQUID_SRC_AUTH_BASIC_USER_H
#if HAVE_AUTH_MODULE_BASIC
#include "auth/User.h"
#include "auth/UserRequest.h"
namespace Auth
{
class SchemeConfig;
class QueueNode;
namespace Basic
{
/** User credentials for the Basic authentication protocol */
class User : public Auth::User
{
MEMPROXY_CLASS(Auth::Basic::User);
public:
User(Auth::SchemeConfig *, const char *requestRealm);
~User() override;
bool authenticated() const;
bool valid() const;
/** Update the cached password for a username. */
void updateCached(User *from);
int32_t ttl() const override;
/* Auth::User API */
static CbcPointer<Auth::CredentialsCache> Cache();
void addToNameCache() override;
char *passwd;
QueueNode *queue;
private:
Auth::UserRequest::Pointer currentRequest;
};
} // namespace Basic
} // namespace Auth
#endif /* HAVE_AUTH_MODULE_BASIC */
#endif /* SQUID_SRC_AUTH_BASIC_USER_H */