REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
A thin wrapper around the username. More...
#include <auth.h>


Public Member Functions | |
AuthentificationContext (User user) | |
AuthentificationContext () | |
void | set_remote_identifier (RemoteIdentifier r) |
bool | can_do (SecurityLevel task) const |
bool | hasBetterClearenceThen (const User &other) const |
void | login (const User &user) |
User | user () const |
size_t | printTo (Print &p) const override |
Detailed Description
A thin wrapper around the username.
Note that we do not support logouts. Logout happens when the context object is destroyed. The scope is typically given by the TCP/IP session.
Constructor & Destructor Documentation
◆ AuthentificationContext() [1/2]
|
inline |
◆ AuthentificationContext() [2/2]
|
inline |
Member Function Documentation
◆ can_do()
|
inline |
Definition at line 244 of file auth.h.
References net::auth::UserPasswordAuthentification::can_do(), and utils::HeapSingleton< Gatekeeper >::get().
Referenced by msg::JsonLinesProtocol::handleMessage(), hasBetterClearenceThen(), and net::auth::Gatekeeper::lock_release().
◆ hasBetterClearenceThen()
|
inline |
Definition at line 253 of file auth.h.
References can_do(), net::auth::UserPasswordAuthentification::can_do(), net::auth::RequiresAdmin, and net::auth::RequiresLogin.
Referenced by net::auth::Gatekeeper::login().
◆ login()
|
inline |
Definition at line 258 of file auth.h.
References user().
Referenced by net::auth::Gatekeeper::login().
◆ printTo()
|
inlineoverride |
Definition at line 262 of file auth.h.
References net::auth::RemoteIdentifier::printTo(), and user().
◆ set_remote_identifier()
|
inline |
Definition at line 242 of file auth.h.
Referenced by web::LucidacWebsocketsClient::LucidacWebsocketsClient().
◆ user()
|
inline |
Definition at line 260 of file auth.h.
Referenced by net::auth::Gatekeeper::lock_acquire(), net::auth::Gatekeeper::lock_release(), login(), and printTo().
The documentation for this class was generated from the following file:
- lib/communication/src/net/auth.h