CredentialsCache(const CredentialsCache&) = delete;
CredentialsCache& operator=(const CredentialsCache&) = delete;
- /// obtain pointer to user if present, or Pointer(nullptr) if not
/// \returns a pointer to cached credentials, or nil if none found
Auth::User::Pointer lookup(const SBuf &userKey) const;
/// clear cache
void reset() { store_.clear(); }
- /// extract number of cached usernames
+ /// \returns number of cached usernames
size_t size() const { return store_.size(); }
/** periodic cleanup function, removes timed-out entries
*/
void doConfigChangeCleanup();
- /// obtain alphanumerically sorted list of usernames
+ /// \returns alphanumerically sorted list of usernames
std::vector<Auth::User::Pointer> sortedUsersList() const;
private:
#include "auth/AclProxyAuth.h"
#include "auth/basic/User.h"
#include "auth/Config.h"
+#include "auth/CredentialsCache.h"
#include "auth/digest/User.h"
#include "auth/Gadgets.h"
#include "auth/negotiate/User.h"
#include "auth/ntlm/User.h"
#include "auth/Scheme.h"
#include "auth/User.h"
-#include "auth/CredentialsCache.h"
#include "auth/UserRequest.h"
#include "client_side.h"
#include "globals.h"
Type.cc \
Config.cc \
Config.h \
+ CredentialsCache.h \
+ CredentialsCache.cc \
CredentialState.cc \
CredentialState.h \
Gadgets.cc \
State.cc \
User.h \
User.cc \
- CredentialsCache.h \
- CredentialsCache.cc \
UserRequest.h \
UserRequest.cc
#include "acl/Acl.h"
#include "acl/Gadgets.h"
#include "auth/Config.h"
+#include "auth/CredentialsCache.h"
#include "auth/Gadgets.h"
#include "auth/User.h"
-#include "auth/CredentialsCache.h"
#include "auth/UserRequest.h"
#include "event.h"
#include "globals.h"
#include "auth/basic/Scheme.h"
#include "auth/basic/User.h"
#include "auth/basic/UserRequest.h"
+#include "auth/CredentialsCache.h"
#include "auth/Gadgets.h"
#include "auth/State.h"
-#include "auth/CredentialsCache.h"
#include "cache_cf.h"
#include "charset.h"
#include "helper.h"
* See acl.c for access control and client_side.c for auditing */
#include "squid.h"
+#include "auth/CredentialsCache.h"
#include "auth/digest/Config.h"
#include "auth/digest/Scheme.h"
#include "auth/digest/User.h"
#include "auth/digest/UserRequest.h"
#include "auth/Gadgets.h"
#include "auth/State.h"
-#include "auth/CredentialsCache.h"
#include "base/LookupTable.h"
#include "base64.h"
#include "cache_cf.h"
*/
#include "squid.h"
+#include "auth/CredentialsCache.h"
#include "auth/digest/Config.h"
#include "auth/digest/User.h"
-#include "auth/CredentialsCache.h"
#include "Debug.h"
#include "dlink.h"
#include "SquidConfig.h"
#include "squid.h"
#include "auth/Config.h"
-#include "auth/negotiate/User.h"
#include "auth/CredentialsCache.h"
+#include "auth/negotiate/User.h"
#include "Debug.h"
Auth::Negotiate::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
#include "squid.h"
#include "AccessLogEntry.h"
+#include "auth/CredentialsCache.h"
#include "auth/negotiate/Config.h"
#include "auth/negotiate/User.h"
#include "auth/negotiate/UserRequest.h"
#include "auth/State.h"
#include "auth/User.h"
-#include "auth/CredentialsCache.h"
#include "client_side.h"
#include "fatal.h"
#include "format/Format.h"
#include "squid.h"
#include "auth/Config.h"
-#include "auth/ntlm/User.h"
#include "auth/CredentialsCache.h"
+#include "auth/ntlm/User.h"
#include "Debug.h"
Auth::Ntlm::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
#include "squid.h"
#include "AccessLogEntry.h"
+#include "auth/CredentialsCache.h"
#include "auth/ntlm/Config.h"
#include "auth/ntlm/User.h"
#include "auth/ntlm/UserRequest.h"
#include "auth/State.h"
-#include "auth/CredentialsCache.h"
#include "cbdata.h"
#include "client_side.h"
#include "fatal.h"