Click or drag to resize
SystemDateTimeValidation Class
Facilitates validating the date/time of the current system against Internet time servers (via Simple Network Time Protocol, or SNTP).
Inheritance Hierarchy
SystemObject
  com.softwarekey.Client.LicensingSystemValidation
    com.softwarekey.Client.LicensingSystemDateTimeValidation

Namespace: com.softwarekey.Client.Licensing
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public class SystemDateTimeValidation : SystemValidation

The SystemDateTimeValidation type exposes the following members.

Constructors
  NameDescription
Public methodSystemDateTimeValidation
Creates a new SystemDateTimeValidation object which requires successful validation with an Internet time server (requires Internet connectivity). The AddTimeServerCheck(String) method will need to be called at least once to allow validation to occur.
Public methodSystemDateTimeValidation(Boolean)
Creates a new SystemDateTimeValidation object. The AddTimeServerCheck(String) method will need to be called at least once to allow validation to occur.
Public methodSystemDateTimeValidation(Boolean, Double)
Creates a new SystemDateTimeValidation object. The AddTimeServerCheck(String) method will need to be called at least once to allow validation to occur.
Top
Properties
  NameDescription
Public propertyAllowedVariation
Gets or sets the amount of time (in minutes) of acceptable variation between the current system's date/time versus the Internet time server's date/time. (5.0 by default)
Public propertyLastError
Gets or sets the last error encountered in this object.
(Inherited from SystemValidation.)
Public propertyValidationRequired
Gets or sets whether or not validation with an Internet time server is required. Internet connectivity is required if true. (True by default)
Top
Methods
  NameDescription
Public methodAddTimeServerCheck(String)
Adds an SNTP server to the list of servers to check.
Public methodAddTimeServerCheck(String, Int32)
Add an SNTP server to the list of servers to check.
Public methodAddTimeServerCheck(String, Int32, Int32, Int32)
Add an SNTP server to the list of servers to check.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodValidate
Validates the current system's Date/Time against that of Internet time servers.
(Overrides SystemValidationValidate.)
Top
Remarks
Caution note Caution

This class allows you to verify a system's time has not be altered by comparing it to the time on a specified Internet time server. Sometimes, the availability of time servers may be somewhat unreliable (which is why this class allows you to specify multiple servers as fallbacks), and it is common for SNTP requests to be blocked by firewalls and proxy servers.

Additionally, although it is technically possible to perform SNTP requests against public NTP servers in your application, we strongly recommend you get approval from the time server's administrators/owners first (as this could cause unexpected load on their time servers, which could cause problems for you and everyone else who might rely on them).

Caution note Caution

The SystemDateTimeValidation class is not available in the .NET Standard PLUSManaged assembly.

See Also