TLS 1.0 will be deprecated on 30 June 2018 for the Xero API. After that date, TLS 1.1 or above must be used. Please read this page for more info.
Using the Xero API with Java
Xero-Java
Xero-Java is the recommended server-side SDK, which supports all API application types