Squid Web Cache
master
Loading...
Searching...
No Matches
User.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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_SRC_AUTH_BASIC_USER_H
10
#define SQUID_SRC_AUTH_BASIC_USER_H
11
12
#if HAVE_AUTH_MODULE_BASIC
13
14
#include "
auth/User.h
"
15
#include "
auth/UserRequest.h
"
16
17
namespace
Auth
18
{
19
20
class
SchemeConfig;
21
class
QueueNode;
22
23
namespace
Basic
24
{
25
27
class
User :
public
Auth::User
28
{
29
MEMPROXY_CLASS
(Auth::Basic::User);
30
31
public
:
32
User(
Auth::SchemeConfig
*,
const
char
*requestRealm);
33
~User()
override
;
34
bool
authenticated()
const
;
35
bool
valid()
const
;
36
38
void
updateCached(User *from);
39
int32_t ttl()
const override
;
40
41
/* Auth::User API */
42
static
CbcPointer<Auth::CredentialsCache>
Cache
();
43
void
addToNameCache()
override
;
44
45
char
*passwd;
46
47
QueueNode *queue;
48
49
private
:
50
Auth::UserRequest::Pointer
currentRequest;
51
};
52
53
}
// namespace Basic
54
}
// namespace Auth
55
56
#endif
/* HAVE_AUTH_MODULE_BASIC */
57
#endif
/* SQUID_SRC_AUTH_BASIC_USER_H */
58
MEMPROXY_CLASS
#define MEMPROXY_CLASS(CLASS)
Definition
AllocatorProxy.h:28
UserRequest.h
User.h
Auth::SchemeConfig
Definition
SchemeConfig.h:47
Auth::User
Definition
User.h:37
CbcPointer
Definition
CbcPointer.h:26
RefCount< Auth::UserRequest >
Auth
HTTP Authentication.
Definition
Config.h:19
Cache
struct _Cache Cache
Definition
test_cache_digest.cc:27
squid
src
auth
basic
User.h
Generated by
1.9.8