Leosac
0.8.0
Open Source Access Control
|
This class is some kind of factory to create IAuthenticationSource object from a zmqpp::message sent by a AuthSource module (eg Wiegand). More...
#include <AuthSourceBuilder.hpp>
Public Member Functions | |
AuthSourceBuilder ()=default | |
virtual | ~AuthSourceBuilder ()=default |
AuthSourceBuilder (const AuthSourceBuilder &)=delete | |
AuthSourceBuilder (AuthSourceBuilder &&)=delete | |
AuthSourceBuilder & | operator= (const AuthSourceBuilder &)=delete |
AuthSourceBuilder & | operator= (AuthSourceBuilder &&)=delete |
virtual Cred::ICredentialPtr | create (zmqpp::message *msg) |
Create a Credential object from a message. More... | |
bool | extract_source_name (const std::string &input, std::string *output) const |
Extract the source name from the frame. More... | |
Protected Member Functions | |
Cred::ICredentialPtr | create_simple_wiegand (const std::string &name, zmqpp::message *msg) |
Create an auth source from SIMPLE_WIEGAND data type. More... | |
Cred::ICredentialPtr | create_pincode (const std::string &name, zmqpp::message *msg) |
Create an auth source from WIEGAND_PIN data type. More... | |
Cred::ICredentialPtr | create_wiegand_card_pin (const std::string &name, zmqpp::message *msg) |
Create an auth source from a WiegandCard and PIN Code. More... | |
Cred::ICredentialPtr | create_simple_csn (const std::string &name, zmqpp::message *msg) |
This class is some kind of factory to create IAuthenticationSource object from a zmqpp::message sent by a AuthSource module (eg Wiegand).
The AuthenticationSource will not contain all data. It still needs to be mapped to a user/access profile.
Definition at line 37 of file AuthSourceBuilder.hpp.
|
explicitdefault |
|
virtualdefault |
|
delete |
|
delete |
|
virtual |
Create a Credential object from a message.
msg | message from auth source module, CANNOT BE NULL. |
Definition at line 52 of file AuthSourceBuilder.cpp.
|
protected |
Create an auth source from WIEGAND_PIN data type.
Definition at line 109 of file AuthSourceBuilder.cpp.
|
protected |
Definition at line 33 of file AuthSourceBuilder.cpp.
|
protected |
Create an auth source from SIMPLE_WIEGAND data type.
msg | the message first frame shall be wiegand data (ie previous should be pop'd). |
Definition at line 92 of file AuthSourceBuilder.cpp.
|
protected |
Create an auth source from a WiegandCard and PIN Code.
Definition at line 126 of file AuthSourceBuilder.cpp.
bool Leosac::Auth::AuthSourceBuilder::extract_source_name | ( | const std::string & | input, |
std::string * | output | ||
) | const |
Extract the source name from the frame.
output | shall not be null. |
Definition at line 79 of file AuthSourceBuilder.cpp.
|
delete |
|
delete |