|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
45 using TimePoint = std::chrono::system_clock::time_point;
void set_start_date(const std::string &s)
Set the start validity date.
bool is_enabled() const
Is the credential enabled ?
This is the header file for a generated source file, GitSHA1.cpp.
ValidityInfo()
Default status is: enabled and no time-based limitation.
const TimePoint & end() const
std::chrono::system_clock::time_point TimePoint
bool is_valid() const
Check that the current date is between validity start and end and make sure its enabled too.
const TimePoint & start() const
void set_end_date(const std::string &s)
Set the end validity date.
A simple class that stores (and can be queried for) the validity of some objects.
bool is_in_range() const
Are we currently is the validity range of the credential ?