|
Squid Web Cache master
|
#include <Scheme.h>
Public Types | |
| typedef RefCount< Scheme > | Pointer |
| typedef std::vector< Scheme::Pointer >::iterator | iterator |
| typedef std::vector< Scheme::Pointer >::const_iterator | const_iterator |
Public Member Functions | |
| Scheme () | |
| ~Scheme () override | |
| virtual char const * | type () const =0 |
| virtual void | shutdownCleanup ()=0 |
| virtual Auth::SchemeConfig * | createConfig ()=0 |
| Scheme (Scheme const &) | |
| Scheme & | operator= (Scheme const &) |
Static Public Member Functions | |
| static void | AddScheme (Scheme::Pointer) |
| static void | FreeAll () |
| static Scheme::Pointer | Find (const char *) |
| static std::vector< Scheme::Pointer > & | GetSchemes () |
Protected Attributes | |
| bool | initialised |
I represent an authentication scheme. For now my children store the scheme metadata.
Should we need multiple configs of a single scheme, a new class should be made, and the config specific calls on Auth::Scheme moved to it.
| typedef std::vector<Scheme::Pointer>::const_iterator Auth::Scheme::const_iterator |
| typedef std::vector<Scheme::Pointer>::iterator Auth::Scheme::iterator |
| typedef RefCount<Scheme> Auth::Scheme::Pointer |
| Auth::Scheme::Scheme | ( | Scheme const & | ) |
|
static |
Definition at line 18 of file Scheme.cc.
References assert, and GetSchemes().
|
pure virtual |
|
static |
Locate an authentication scheme component by Name.
Definition at line 31 of file Scheme.cc.
Referenced by getConfig(), parse_authparam(), and Auth::UserRequest::scheme().
|
static |
Final termination of all authentication components. To be used only on shutdown. All global pointers are released. After this all schemes will appear completely unsupported until a call to InitAuthModules(). Release the Auth::TheConfig handles instead to disable authentication without terminating all support.
Called when a graceful shutdown is to occur of each scheme module. On completion the auth components are to be considered deleted. None will be available globally. Some may remain around for their currently active connections to close, but only those active connections will retain pointers to them.
Definition at line 56 of file Scheme.cc.
References assert, shutting_down, and size.
Referenced by SignalEngine::FinalShutdownRunners().
|
static |
Definition at line 42 of file Scheme.cc.
Referenced by AddScheme(), authenticateSchemeCount(), TestAuthConfig::create(), and TestAuthUserRequest::scheme().
|
pure virtual |
|
pure virtual |