]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/digest/User.h
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_AUTH_DIGEST_USER_H
10 #define _SQUID_AUTH_DIGEST_USER_H
12 #if HAVE_AUTH_MODULE_DIGEST
14 #include "auth/digest/Config.h"
15 #include "auth/User.h"
23 /** User credentials for the Digest authentication protocol */
24 class User
: public Auth::User
26 MEMPROXY_CLASS(Auth::Digest::User
);
29 User(Auth::SchemeConfig
*, const char *requestRealm
);
31 int authenticated() const;
32 virtual int32_t ttl() const override
;
35 static CbcPointer
<Auth::CredentialsCache
> Cache();
36 virtual void addToNameCache() override
;
41 /* what nonces have been allocated to this user */
44 digest_nonce_h
* currentNonce();
50 #endif /* HAVE_AUTH_MODULE_DIGEST */
51 #endif /* _SQUID_AUTH_DIGEST_USER_H */