A ValidityPeriodLite is used in a Data packet's SignatureInfo and represents the begin and end times of a certificate's validity period.
More...
#include <validity-period-lite.hpp>
A ValidityPeriodLite is used in a Data packet's SignatureInfo and represents the begin and end times of a certificate's validity period.
Check if this is the same validity period as other.
- Parameters
-
- Returns
- True if the validity periods are equal.
| ndn_MillisecondsSince1970 ndn::ValidityPeriodLite::getNotAfter |
( |
| ) |
const |
|
inline |
Get the end of the validity period range.
- Returns
- The time as milliseconds since Jan 1, 1970 UTC.
| ndn_MillisecondsSince1970 ndn::ValidityPeriodLite::getNotBefore |
( |
| ) |
const |
|
inline |
Get the beginning of the validity period range.
- Returns
- The time as milliseconds since Jan 1, 1970 UTC.
| bool ndn::ValidityPeriodLite::hasPeriod |
( |
| ) |
const |
Check if the period has been set.
- Returns
- True if the period has been set, false if the period is not specified (after calling the default constructor or clear).
| bool ndn::ValidityPeriodLite::isValid |
( |
ndn_MillisecondsSince1970 |
time | ) |
const |
Check if the time falls within the validity period.
- Parameters
-
| time | The time to check as milliseconds since Jan 1, 1970 UTC. |
- Returns
- True if the beginning of the validity period is less than or equal to time and time is less than or equal to the end of the validity period.
| ValidityPeriodLite & ndn::ValidityPeriodLite::setPeriod |
( |
ndn_MillisecondsSince1970 |
notBefore, |
|
|
ndn_MillisecondsSince1970 |
notAfter |
|
) |
| |
Set the validity period.
- Parameters
-
| notBefore | The beginning of the validity period range as milliseconds since Jan 1, 1970 UTC. Note that this is rounded up to the nearest whole second. |
| notAfter | The end of the validity period range as milliseconds since Jan 1, 1970 UTC. Note that this is rounded down to the nearest whole second. |
- Returns
- This ValidityPeriodLite so that you can chain calls to update values.
The documentation for this class was generated from the following files: