/// <summary> /// Handle allowed clock skew by increasing notOnOrAfter with allowedClockSkew /// </summary> private static bool ValidateNotOnOrAfter(DateTime?notOnOrAfter, DateTime now, TimeSpan allowedClockSkew) { if (notOnOrAfter == null) { return(true); } return(TimeRestrictionValidation.NotOnOrAfterValid(notOnOrAfter.Value, now, allowedClockSkew)); }