JavaNTSClient is a Java-based library designed to interact as a client with Network Time Security (NTS) servers.
The file NTSTime.java contains an very easy example on how to use the library. A more complex example of its use by an Android app can be found here.
In general, only one NTSUDPClient object need to be instatiated. Multiple time servers can be queried from the same NTSUDPClient object using the getTime method.
The library handles the TLS handshake, key extraction and cookie management independently for each time server.
The interface is compatible with and inspired by the Apache Commons NTP library.
This library was developed by:
- Aleix Galan-Figueras, KU Leuven, Belgium
- Cillian O'Driscoll, Independent consultant, Ireland
- Ignacio Fernandez-Hernandez, KU Leuven, Belgium