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