#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 |
Static Private Attributes | |
static std::vector< Scheme::Pointer > * | _Schemes = nullptr |
Detailed Description
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.
Member Typedef Documentation
◆ const_iterator
typedef std::vector<Scheme::Pointer>::const_iterator Auth::Scheme::const_iterator |
◆ iterator
typedef std::vector<Scheme::Pointer>::iterator Auth::Scheme::iterator |
◆ Pointer
typedef RefCount<Scheme> Auth::Scheme::Pointer |
Constructor & Destructor Documentation
◆ Scheme() [1/2]
◆ ~Scheme()
◆ Scheme() [2/2]
Auth::Scheme::Scheme | ( | Scheme const & | ) |
Member Function Documentation
◆ AddScheme()
|
static |
Definition at line 20 of file Scheme.cc.
References assert, GetSchemes(), and instance.
◆ createConfig()
|
pure virtual |
◆ Find()
|
static |
Locate an authentication scheme component by Name.
Definition at line 33 of file Scheme.cc.
Referenced by getConfig(), parse_authparam(), and Auth::UserRequest::scheme().
◆ FreeAll()
|
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 terminiating 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 60 of file Scheme.cc.
References assert, shutting_down, and size.
Referenced by SignalEngine::FinalShutdownRunners().
◆ GetSchemes()
|
static |
Definition at line 44 of file Scheme.cc.
Referenced by AddScheme(), authenticateSchemeCount(), TestAuthConfig::create(), and TestAuthUserRequest::scheme().
◆ operator=()
◆ shutdownCleanup()
|
pure virtual |
◆ type()
|
pure virtual |
Member Data Documentation
◆ _Schemes
|
staticprivate |
◆ initialised
The documentation for this class was generated from the following files: