|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
30 class IAuthenticationSource;
80 virtual const std::string &
name()
const = 0;
85 virtual std::string
to_string()
const = 0;
91 virtual const std::string &
id()
const = 0;
93 virtual void id(
const std::string &new_id) = 0;
virtual const std::string & name() const =0
Return the name of the source.
virtual std::string to_string() const =0
Returns a string representation of the authentication source content.
virtual const ValidityInfo & validity() const =0
Get the object that store info about the credential's validity.
virtual void addAuthSource(IAuthenticationSourcePtr source)=0
Adds a new authentication sources as a subsource of this one.
virtual const std::string & id() const =0
Returns the ID of the credentials.
std::shared_ptr< User > UserPtr
virtual UserPtr owner() const =0
Retrieve the user that map to this source.
std::shared_ptr< IAccessProfile > IAccessProfilePtr
virtual ~IAuthenticationSource()=default
This is the header file for a generated source file, GitSHA1.cpp.
std::shared_ptr< IAuthenticationSource > IAuthenticationSourcePtr
An Auth source is a card id, a pin code, a fingerprint, etc...
virtual IAccessProfilePtr profile() const =0
Return (or generate) an Access Profile that make sense based on the data available in this Authentica...
A simple class that stores (and can be queried for) the validity of some objects.