SystemDateTimeValidation Class |
Namespace: com.softwarekey.Client.Licensing
The SystemDateTimeValidation type exposes the following members.
Name | Description | |
---|---|---|
SystemDateTimeValidation | 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. | |
SystemDateTimeValidation(Boolean) | Creates a new SystemDateTimeValidation object. The AddTimeServerCheck(String) method will need to be called at least once to allow validation to occur. | |
SystemDateTimeValidation(Boolean, Double) | Creates a new SystemDateTimeValidation object. The AddTimeServerCheck(String) method will need to be called at least once to allow validation to occur. |
Name | Description | |
---|---|---|
AllowedVariation | 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) | |
LastError | Gets or sets the last error encountered in this object. (Inherited from SystemValidation.) | |
ValidationRequired | Gets or sets whether or not validation with an Internet time server is required. Internet connectivity is required if true. (True by default) |
Name | Description | |
---|---|---|
AddTimeServerCheck(String) | Adds an SNTP server to the list of servers to check. | |
AddTimeServerCheck(String, Int32) | Add an SNTP server to the list of servers to check. | |
AddTimeServerCheck(String, Int32, Int32, Int32) | Add an SNTP server to the list of servers to check. | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
Validate | Validates the current system's Date/Time against that of Internet time servers. (Overrides SystemValidationValidate.) |
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 |
---|
The SystemDateTimeValidation class is not available in the .NET Standard PLUSManaged assembly. |