Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.36 KB

File metadata and controls

22 lines (13 loc) · 1.36 KB

JavaNTSClient

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.

Maven Central

You can import JavaNTSClient from the maven central repository: io.github.algafix/JavaNTSClient

Attribution

This library was developed by: