22 #ifndef NDN_VALIDITY_PERIOD_LITE_HPP
23 #define NDN_VALIDITY_PERIOD_LITE_HPP
25 #include "../../c/security/validity-period-types.h"
52 ndn_MillisecondsSince1970
59 ndn_MillisecondsSince1970
96 isValid(ndn_MillisecondsSince1970 time)
const;
Copyright (C) 2016-2018 Regents of the University of California.
Definition: validity-period-types.h:34
bool equals(const ValidityPeriodLite &other) const
Check if this is the same validity period as other.
Definition: validity-period-lite.cpp:53
ndn_MillisecondsSince1970 notAfter
-DBL_MAX for none.
Definition: validity-period-types.h:36
ndn_MillisecondsSince1970 notBefore
DBL_MAX for none.
Definition: validity-period-types.h:35
ValidityPeriodLite()
Create a default ValidityPeriodLite where the period is not specified.
Definition: validity-period-lite.cpp:27
void clear()
Reset to a default ValidityPeriod where the period is not specified.
Definition: validity-period-lite.cpp:39
static ValidityPeriodLite & downCast(ndn_ValidityPeriod &validityPeriod)
Downcast the reference to the ndn_ValidityPeriod struct to a ValidityPeriodLite.
Definition: validity-period-lite.hpp:104
bool isValid(ndn_MillisecondsSince1970 time) const
Check if the time falls within the validity period.
Definition: validity-period-lite.cpp:59
ValidityPeriodLite & setPeriod(ndn_MillisecondsSince1970 notBefore, ndn_MillisecondsSince1970 notAfter)
Set the validity period.
Definition: validity-period-lite.cpp:46
ndn_MillisecondsSince1970 getNotAfter() const
Get the end of the validity period range.
Definition: validity-period-lite.hpp:60
ndn_MillisecondsSince1970 getNotBefore() const
Get the beginning of the validity period range.
Definition: validity-period-lite.hpp:53
bool hasPeriod() const
Check if the period has been set.
Definition: validity-period-lite.cpp:33
A ValidityPeriodLite is used in a Data packet's SignatureInfo and represents the begin and end times ...
Definition: validity-period-lite.hpp:33