]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/ExtUser.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / ExtUser.h
CommitLineData
abb929f0 1/*
bbc27441 2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
abb929f0 3 *
bbc27441
AJ
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.
abb929f0 7 */
8
a260430e
CT
9#ifndef SQUID_EXTUSER_H
10#define SQUID_EXTUSER_H
63be0a78 11
2f1431ea
AJ
12#if USE_AUTH
13
3ad63615
AR
14#include "acl/Acl.h"
15#include "acl/Checklist.h"
16#include "acl/Data.h"
abb929f0 17
63be0a78 18/// \ingroup ACLAPI
abb929f0 19class ACLExtUser : public ACL
20{
21
22public:
b001e822 23 MEMPROXY_CLASS(ACLExtUser);
abb929f0 24
25 ACLExtUser(ACLData<char const *> *newData, char const *);
26 ACLExtUser (ACLExtUser const &old);
27 ACLExtUser & operator= (ACLExtUser const &rhs);
28 ~ACLExtUser();
29
30 virtual char const *typeString() const;
31 virtual void parse();
abb929f0 32
33 virtual int match(ACLChecklist *checklist);
8966008b 34 virtual SBufList dump() const;
4b0f5de8 35 virtual bool empty () const;
abb929f0 36 virtual ACL *clone()const;
37
38private:
abb929f0 39 static Prototype UserRegistryProtoype;
40 static ACLExtUser UserRegistryEntry_;
41 static Prototype RegexRegistryProtoype;
42 static ACLExtUser RegexRegistryEntry_;
43 ACLData<char const *> *data;
44 char const *type_;
45};
46
d85b8894 47MEMPROXY_CLASS_INLINE(ACLExtUser);
b001e822 48
2f1431ea 49#endif /* USE_AUTH */
a260430e 50#endif /* SQUID_EXTUSER_H */